aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/formatter
Commit message (Collapse)AuthorAgeFilesLines
* Manually fix remaining PHPCS errorsArthurHoaro2020-11-092-3/+3
|
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-093-8/+10
|
* Feature: support any tag separatorArthurHoaro2020-11-052-4/+6
| | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* Default formatter: add a setting to disable auto-linkificationArthurHoaro2020-11-031-1/+6
| | | | | | | + update documentation + single parameter for both URL and hashtags Fixes #1094
* Feature: highlight fulltext search resultsArthurHoaro2020-10-163-14/+203
| | | | | | | | | | | | | | | | | | | | How it works: 1. when a fulltext search is made, Shaarli looks for the first occurence position of every term matching the search. No change here, but we store these positions in an array, in Bookmark's additionalContent. 2. when formatting bookmarks (through BookmarkFormatter implementation): 1. first we insert specific tokens at every search result positions 2. we format the content (escape HTML, apply markdown, etc.) 3. as a last step, we replace our token with displayable span elements Cons: this tightens coupling between search filters and formatters Pros: it was absolutely necessary not to perform the search twice. this solution has close to no impact on performances. Fixes #205
* Add Markdown Extra formatterArthurHoaro2020-10-131-0/+24
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-061-0/+26
| | | | | | XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
* Include empty basePath in formattingArthurHoaro2020-07-281-3/+3
|
* Better support for notes permalinkArthurHoaro2020-07-283-11/+19
|
* Slim router: handle add tag routeArthurHoaro2020-07-231-2/+2
|
* Fix an issue with private tags and fix nomarkdown tagArthurHoaro2020-01-184-10/+46
| | | | | | | | The new bookmark service wasn't handling private tags properly. nomarkdown tag is now shown only for logged in user in bookmarks, and hidden for everyone in tag clouds/lists. Fixes #726
* Apply the new system (Bookmark + Service) to the whole code baseArthurHoaro2020-01-181-0/+6
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Introduce Bookmark object and Service layer to retrieve themArthurHoaro2020-01-175-0/+594
See https://github.com/shaarli/Shaarli/issues/1307 for details