diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-01-19 17:49:19 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2021-01-19 17:49:19 +0100 |
commit | 9ef8555ad298668bcb8537ccdd2ab6560f44177f (patch) | |
tree | ba23e5d76d3d1f9eb95231ea6504d283f86d7722 /application/formatter/Parsedown/ShaarliParsedown.php | |
parent | ffa39719a17982e6a6cac9bc3f758aa12fa69973 (diff) | |
download | Shaarli-9ef8555ad298668bcb8537ccdd2ab6560f44177f.tar.gz Shaarli-9ef8555ad298668bcb8537ccdd2ab6560f44177f.tar.zst Shaarli-9ef8555ad298668bcb8537ccdd2ab6560f44177f.zip |
Support search highlights when matching URL content
DefaultFormatter:
- format 'a' tag content and not href attribute
- format hashtags properly
Markdown(Extra)Formatter:
- Extend Parsedown to format highlight properly: https://github.com/erusev/parsedown/wiki/Tutorial:-Create-Extensions
Fixes #1681
Diffstat (limited to 'application/formatter/Parsedown/ShaarliParsedown.php')
-rw-r--r-- | application/formatter/Parsedown/ShaarliParsedown.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/application/formatter/Parsedown/ShaarliParsedown.php b/application/formatter/Parsedown/ShaarliParsedown.php new file mode 100644 index 00000000..d577bdfa --- /dev/null +++ b/application/formatter/Parsedown/ShaarliParsedown.php | |||
@@ -0,0 +1,10 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Shaarli\Formatter\Parsedown; | ||
6 | |||
7 | class ShaarliParsedown extends \Parsedown | ||
8 | { | ||
9 | use ShaarliParsedownTrait; | ||
10 | } | ||