aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1212 from ArthurHoaro/hotfix/hashtag-md-escapeArthurHoaro2018-10-065-6/+38
|\ | | | | Fix hashtags with markdown escape enabled
| * Fix hashtags with markdown escape enabledArthurHoaro2018-08-145-6/+38
| | | | | | | | | | | | They're now transformed to markdown syntax links before processing them through Parsedown. Fixes #1210
* | Isso plugin: add an icon in linklist if enabledArthurHoaro2018-08-141-6/+10
|/ | | | Fixes #1075
* Fix feed permalink rendering with markdown escape set to trueArthurHoaro2018-05-191-0/+55
| | | | Fixes #1134
* Update parsedown to its latest version instead of fixed 1.6ArthurHoaro2018-03-311-2/+2
|
* PSR: use elseif instead of else ifArthurHoaro2018-02-281-1/+1
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Executes daily hooks before creating columns.kalvn2018-02-011-17/+11
|
* Add a whitelist of protocols for URLsArthurHoaro2017-05-253-5/+29
| | | | | | | - for Shaare - for markdown description links and images Not whitelisted protocols will be replaced by `http://`
* Remove readityourself pluginArthurHoaro2017-04-011-99/+0
| | | | Fixes #818
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-046-1/+5
| | | | | | | | | | | 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-282-9/+54
| | | | | | | | | | | | | 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
* Remove CSS call for addlink toolbar pluginArthurHoaro2017-01-151-40/+0
| | | | Fixes #724
* Cleanup: explicit method visibilityVirtualTam2017-01-0510-54/+50
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Move PubSubHubbub code as a default pluginArthurHoaro2016-12-201-0/+54
|
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-5/+16
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Unit Test for the new ID systemArthurHoaro2016-12-121-5/+9
|
* 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-223-0/+61
| | | | | | Fixes #672 + Markdown to HTML unit test
* Isso comments pluginArthurHoaro2016-10-171-0/+136
| | | | Use Isso client to let visitors comments on permalinks
* New init function for plugins, supports errors reportingArthurHoaro2016-10-142-4/+42
| | | | | | | | All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded. This function is aware of the config, and can return initialization errors, which are displayed in the header template. Note that the previous error system hack no longer work.
* Archive.org plugin: do not propose archival of private notesTeromene2016-10-131-4/+98
| | | | Fixes #637
* Parse plugin parameters description with the PluginManagerArthurHoaro2016-08-021-1/+3
| | | | | | Plugin parameter can contain a description in their meta file under the key: parameter.<param_name>="<description>"
* Merge pull request #570 from ArthurHoaro/config-managerArthur2016-07-092-8/+14
|\ | | | | Introduce a configuration manager
| * PluginManager no longer uses singleton patternArthurHoaro2016-06-112-7/+10
| |
| * Use the configuration manager for wallabag and readityourself pluginArthurHoaro2016-06-112-4/+7
| |
* | 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.
* Merge pull request #388 from ArthurHoaro/pluginadminArthur2016-01-311-0/+2
|\ | | | | Fixes #378 - Plugin administration UI.
| * Fixes #378 - Plugin administration UI.ArthurHoaro2016-01-311-0/+2
| |
* | Merge pull request #379 from ArthurHoaro/plugin-markdownArthur2016-01-311-0/+112
|\ \ | |/ |/| PLUGIN Markdown
| * 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.
* | Merge pull request #417 from ArthurHoaro/wallabag-improveVirtualTam2016-01-022-1/+63
|\ \ | | | | | | Wallabag plugin improvement
| * | Wallabag plugin improvementArthurHoaro2015-12-272-1/+63
| |/ | | | | | | | | | | | | | | * Fixes a bug where URL weren't properly encoded. * Adds Wallabag V2 support. * Adds a URL function to handle trailing slash. * UT. * README updated.
* / QRCode plugin: use url instead of real_urlArthurHoaro2015-12-221-2/+2
|/ | | | | | Fixes #414 and avoid usage of redirector in QRCode. Also fixed a bug with URL encoding.
* URL encode links when a redirector is set.ArthurHoaro2015-11-261-2/+2
| | | | | | | | | | | | | | | | | Fixes #328 - URL encode links when a redirector is set * WARNING - template edit - new variable available : "real_url" Contains the final real url (redirected or any other change on original URL) * Don't redirect shaares link in RSS/Atom. * Affects links shaared in description. * Move text2clickable and keepMultipleSpaces to Utils.php + unit test UPDATE: * keepMultipleSpaces renamed to space2nbsp * space2nbsp improved to handle single space at line beginning * links in text description aren't 'nofollow' anymore
* Merge pull request #281 from ArthurHoaro/plugin-wallabagArthur2015-11-081-0/+49
|\ | | | | PLUGIN wallabag
| * unit tests for the wallabag pluginArthurHoaro2015-11-081-0/+49
| | | | | | | | | | + removed exit error if the config is not found + coding style
* | Merge pull request #280 from ArthurHoaro/plugin-readityourselfArthur2015-11-081-0/+75
|\ \ | | | | | | PLUGIN readityourself
| * | unit tests for readityourself plugin + remove hard errorArthurHoaro2015-11-081-0/+75
| |/
* | Merge pull request #279 from ArthurHoaro/plugin-addlink_toolbarArthur2015-11-081-0/+100
|\ \ | | | | | | PLUGIN: addlink_toolbar
| * | unit test for addlink_toolbar + coding styleArthurHoaro2015-11-081-0/+100
| |/
* | Merge pull request #284 from ArthurHoaro/plugin-playvideosArthur2015-11-071-0/+61
|\ \ | | | | | | PLUGIN playvideos
| * | Add unit tests for Playvideos pluginArthurHoaro2015-11-071-0/+61
| |/ | | | | | | + coding style
* | Merge pull request #285 from ArthurHoaro/plugin-qrcodeArthur2015-11-071-0/+67
|\ \ | | | | | | PLUGIN QRCode
| * | Add unit tests for the QRCode pluginArthurHoaro2015-11-071-0/+67
| |/ | | | | | | + coding style
* / Add unit test for archiveorg pluginArthurHoaro2015-11-071-0/+48
|/ | | | + coding style
* Unit tests for Router and PluginManager.ArthurHoaro2015-11-071-0/+0
|
* Plugin system - COREArthurHoaro2015-11-071-0/+21
see shaarli/Shaarli#275