Commit graph

32 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
surrim 22d4608f9f using serendipity_plugin_api::load_language() for some more plugins 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 7bc9969e75 [event_markdown] Simplify use of Markdown lib.
The calls to Markdown and Markdown Extra can be
simplified in the lib version.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-05-10 19:20:09 +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 d19c3ea663 Markdown: add note on plugin ordering.
Version not incremented on purpose.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-06-09 15:35:16 +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 fd183bb999 [markdown] Update SmartyPants Lib to 1.8.1.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-11-10 22:30:34 +01:00
Thomas Hochstein bc07cb91e2 [markdown] Update Markdown Lib to 1.8.0.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-11-10 22:23:40 +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
Garvin Hicking 125ac0ecf3 no spaces in filenames, messes up CVS clone repository 2016-01-06 09:15:23 +01:00
Ian d1c02424e5 the other half of da04025 2014-11-29 15:51:17 +01:00
Ian da04025a7b remove utf-8 location of documentary files
which never becomes true
2014-11-29 13:53:49 +01:00
Garvin Hicking 5731762a34 Added parameters to html_entity_decode() and htmlentities().
I did not use the wrapper method for those few occurences since it was too much work.
I'm sorry :-D
2014-11-29 12:18:56 +01:00
Ian 6e01404ef7 serendipity_event_markdown 1.21 2014-01-04 12:58:43 +01:00
Vladimír Ajgl 7842af973e czech translations - removed leading slash from first line (introduced erroneously in previous commit) 2013-12-28 21:43:44 +01:00
Vladimír Ajgl c5248f893e czech translations - cvs/snv tags removed 2013-12-27 20:04:36 +01:00
Garvin Hicking 80b1593707 also remove $Revision$ 2013-08-12 10:27:53 +02:00
Garvin Hicking 71589a887f Remove $Id$ for CVS compoatibility. Thought I already did this some time ago?!?! 2013-08-12 09:49:28 +02:00
Vladimír Ajgl 3ba45dca13 czech documentation added or updated 2013-05-04 23:14:30 +02:00
Matthias Gutjahr bd4cabab78 plaintext_body was not always set correctly 2012-11-19 17:32:30 +01:00
Matthias Gutjahr 95f4b31903 Increased version numbers 2012-11-07 19:49:05 +01:00
Matthias Gutjahr 0dc53e06b6 Added global plaintext_body property 2012-11-07 19:46:24 +01:00
Grischa Brockhaus fc19cfc5d0 Compatibility fixes 2012-06-13 14:47:45 +02:00
Garvin Hicking 1d2bcb48ed upstream patch by lukas 2012-03-07 09:21:55 +01:00
Garvin Hicking 8da2bdc422 We sadly need to remove $Id$ expansion, because with this CVS sync does not work and would update a file time and time again once modified in GIT 2011-12-25 01:05:26 +01:00
Garvin Hicking 516df79a4e Migrate plugins 2011-12-13 12:29:05 +01:00