| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Fix hashtags with markdown escape enabled
|
| |
| |
| |
| |
| |
| | |
They're now transformed to markdown syntax links before processing them through Parsedown.
Fixes #1210
|
|/
|
|
| |
Fixes #1075
|
|
|
|
| |
Fixes #1134
|
| |
|
|
|
|
| |
See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
|
| |
|
|
|
|
|
|
|
| |
- for Shaare
- for markdown description links and images
Not whitelisted protocols will be replaced by `http://`
|
|
|
|
| |
Fixes #818
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Fixes #724
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Fixes #672
+ Markdown to HTML unit test
|
|
|
|
| |
Use Isso client to let visitors comments on permalinks
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes #637
|
|
|
|
|
|
| |
Plugin parameter can contain a description in their meta file under the key:
parameter.<param_name>="<description>"
|
|\
| |
| | |
Introduce a configuration manager
|
| | |
|
| | |
|
|/
|
|
| |
A private tag is never loaded for visitor, making this feature useless.
|
|
|
|
|
|
| |
parsed with markdown
Also add the tag in tag list in edit_link, so it will appear on autocompletion.
|
|
|
|
| |
Instead of trying to fix broken content for Markdown parsing, parse it unescaped, then sanatize sensible tags such as scripts, etc.
|
|\
| |
| | |
Fixes #378 - Plugin administration UI.
|
| | |
|
|\ \
| |/
|/| |
PLUGIN Markdown
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
Wallabag plugin improvement
|
| |/
| |
| |
| |
| |
| |
| |
| | |
* Fixes a bug where URL weren't properly encoded.
* Adds Wallabag V2 support.
* Adds a URL function to handle trailing slash.
* UT.
* README updated.
|
|/
|
|
|
|
| |
Fixes #414 and avoid usage of redirector in QRCode.
Also fixed a bug with URL encoding.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
PLUGIN wallabag
|
| |
| |
| |
| |
| | |
+ removed exit error if the config is not found
+ coding style
|
|\ \
| | |
| | | |
PLUGIN readityourself
|
| |/ |
|
|\ \
| | |
| | | |
PLUGIN: addlink_toolbar
|
| |/ |
|
|\ \
| | |
| | | |
PLUGIN playvideos
|
| |/
| |
| |
| | |
+ coding style
|
|\ \
| | |
| | | |
PLUGIN QRCode
|
| |/
| |
| |
| | |
+ coding style
|
|/
|
|
| |
+ coding style
|
| |
|
|
see shaarli/Shaarli#275
|