aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginMarkdownTest.php
Commit message (Collapse)AuthorAgeFilesLines
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-041-0/+1
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add markdown_escape settingArthurHoaro2017-02-281-6/+51
| | | | | | | | | | | | | This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README
* Cleanup: explicit method visibilityVirtualTam2017-01-051-10/+10
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Markdown: fixes feed rendering with nomarkdown tagArthurHoaro2016-11-221-4/+25
| | | | | | | | | | | * make sure we match exactly `nomarkdown` tag * pass the whole link data to stripNoMarkdownTag() to: * strip the noMD tag in taglist (array) * strip the tag in tags (string) Fixes #689 tmp
* Fix an issue with links not being reversed in code blocksArthurHoaro2016-10-221-0/+13
| | | | | | Fixes #672 + Markdown to HTML unit test
* The tag is no longer privateArthurHoaro2016-05-301-2/+4
| | | | A private tag is never loaded for visitor, making this feature useless.
* Markdown: Add the 'meta-tag' `.nomarkdown` which prevent a shaare from being ↵ArthurHoaro2016-03-211-1/+36
| | | | | | parsed with markdown Also add the tag in tag list in edit_link, so it will appear on autocompletion.
* Markdown: don't escape content + sanitize sensible tagsArthurHoaro2016-02-191-7/+12
| | | | Instead of trying to fix broken content for Markdown parsing, parse it unescaped, then sanatize sensible tags such as scripts, etc.
* PLUGIN MarkdownArthurHoaro2016-01-031-0/+112
Parse link description in Markdown (HTML) before rendering. * hard remove of Shaarli's HTML before parsing. * Using Parsedown <https://github.com/erusev/parsedown> PHP lib. * Includes basic markdown CSS. * Style: removed 400px height max limit for shaares. * Unit tests.