aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginMarkdownTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1205 from ArthurHoaro/feature/opengraphArthurHoaro2018-10-061-0/+2
|\ | | | | Add OpenGraph meta tags on permalink page
| * Add OpenGraph meta tags on permalink pageArthurHoaro2018-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258
* | Fix hashtags with markdown escape enabledArthurHoaro2018-08-141-1/+13
|/ | | | | | They're now transformed to markdown syntax links before processing them through Parsedown. Fixes #1210
* Fix feed permalink rendering with markdown escape set to trueArthurHoaro2018-05-191-0/+55
| | | | Fixes #1134
* Executes daily hooks before creating columns.kalvn2018-02-011-17/+11
|
* Add a whitelist of protocols for URLsArthurHoaro2017-05-251-3/+8
| | | | | | | - for Shaare - for markdown description links and images Not whitelisted protocols will be replaced by `http://`
* 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.