Commit graph

12 commits

Author SHA1 Message Date
Gregor Nathanael Meyer 76f75e5351
Upgrade serendipity_event_markdown for PHP 8.0/8.1 compatibility (#141)
Upgrade bundled markdown lib `michelf/php-markdown` to version 1.9.1 that enables PHP 8 compatibility. Also dump support for EOL PHP versions in serendipity_event_markdown, because the new version of the bundled markdown lib raises the required PHP version to PHP >=7.4.
2022-08-21 17:40:27 +02:00
surrim 6c664e415c updated plugin versions 2021-07-12 15:44:23 +02:00
Thomas Hochstein 2ce1658154 [event_markdown] Add auto-ids in lib version.
For Markdown and Markdown Extra, add automatic
IDs (#id) to all headings from h1 to h6. Substitute
all chars that are not alphanumeric with "-".
Works in lib version only.

Explicitly defined IDs will override auto-generated
ones, so there is no need to add a configuration
switch for this change.

Fixes #729.

Bump version.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-05-10 19:23:26 +02:00
Thomas Hochstein 0e66b5cc0e Treat <details> and <summary> as block level.
`<details>` and `<summary>` elements should
never be wrapped in `<p></p>`.

See michelf/php-markdown#329.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-04-22 17:39:44 +02:00
Thomas Hochstein b8b90f3b54 [markdown] Bump version, add changelog entries.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-11-10 22:35:17 +01:00
Thomas Hochstein 0ad323c063 [markdown] Make blockquotes in comments usable.
Undo replacing of ">" (by "&gt;"), done by
serendipity_event_unstrip_tags, at the beginning
of the line in comments to make blockquotes
possible.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-09 19:10:25 +02:00
Thomas Hochstein 123581d727 [s9y_event_markdown] Add documentation, update German translation. (#66)
* [s9y_event_markdown] Update German translation.

Signed-off-by: Thomas Hochstein <thh@inter.net>

* [s9y_event_markdown] Add documentation.

German and English language documentation added.

Signed-off-by: Thomas Hochstein <thh@inter.net>

* [s9y_event_markdown] Update/change language files.

* Add an explicit SmartyPants option instead
  of a simple "yes".
* Change (English and German) language files
  accordingly.
* Change URLs to https to avoid redirects.
* Bump version to 1.26
* Update ChangeLog.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-08-06 14:16:32 +02:00
Thomas Hochstein 617427a383 Add CSS for markdown footnotes.
CSS is added via addToCSS().

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-07-19 22:53:17 +02:00
Thomas Hochstein ae01d649d8 Add a prefix for footnote links. (#56)
Add the entry id as a prefix to every footnote
links so links are unique even when more than
one entry is displayed (title page, search
results etc.).

This can only be done with PHP Markdown Lib;
the "classic" version does not have such a
configuration variable.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-05-22 17:29:08 +02:00
Thomas Hochstein 7f04883ef1 Update PHP Markdown lib and get MarkdownExtra working. (#54)
* Get MarkdownExtra working.

It's not enough to import the right library
(Markdown or MarkdownExtra); you'll have to
call the right functions, too!

For the "classic" implementation, there's no
difference, as it seems.

Signed-off-by: Thomas Hochstein <thh@inter.net>

* Upgrade PHP Markdown Lib to 1.7.0

Former version was 1.4.0 from 2013.

Signed-off-by: Thomas Hochstein <thh@inter.net>

* serendipity_event_markdown 1.23

Update Changelog, bump version number.

Add me as author.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-19 14:02:25 +02:00
Ian 6e01404ef7 serendipity_event_markdown 1.21 2014-01-04 12:58:43 +01:00
Garvin Hicking 1d2bcb48ed upstream patch by lukas 2012-03-07 09:21:55 +01:00