Skip to content

Releases: BenjaminHoegh/ParsedownExtended

v1.4.1

28 Nov 16:11
d21bc34
Compare
Choose a tag to compare

What's Changed

  • Fix TOC not reflecting changes made by config()->set and add test case for multiple settings #78

Full Changelog: v1.4.0...v1.4.1

v1.4.0

07 Nov 22:23
Compare
Choose a tag to compare
  • Updated emoji support to Emoji 16
  • Made a small adjustment for the emoji handler to speed up performance for larger documents

Full Changelog: v1.3.0...v1.4.0

v1.3.0

26 Aug 19:59
0b3b8fc
Compare
Choose a tag to compare

Note

ParsedownExtended 1.3.0 uses namespaces. Use use BenjaminHoegh\ParsedownExtended\ParsedownExtended

New Features

  • Link Configuration:

    • External Links: Added detailed configuration options for external links:
      • Control the enablement of external links. Default is true.
      • Nofollow: Automatically add nofollow to external links for better SEO management. Default is true.
      • Noopener: Adds noopener to improve security when opening external links. Default is true.
      • Noreferrer: Ensures that no referrer information is passed when opening external links. Default is true.
      • Open in New Window: External links will now open in a new window by default. Default is true.
      • Internal Hosts: Specify an array of internal hosts to be excluded from external link settings. Default is an empty array.
  • GFM Alerts: Added support for GitHub Flavored Markdown (GFM) alerts, enhancing the ability to display contextual messages in markdown.

    • Ability to set custom alerts using the new alerts.types setting.
  • Enhanced Configuration System:

    • A more robust configuration system has been implemented, featuring type validation and a simplified interface.
    • Management of settings has been streamlined using config()->set() and config()->get() methods.
    • Unified schema naming for a more consistent and intuitive configuration process.

Changes

  • Transliteration Update: The transliteration process now leverages the Transliterator module when available, providing better accuracy and performance.
  • Table of Contents (ToC) Configuration: The ToC ID setting has been integrated into the main configuration system for easier management.
  • Email Links: By default, email links will now open in an external window, enhancing user experience.

Bug Fixes

  • Abbreviation Registration: #69 Fixed an issue ensuring that predefined abbreviations didn't get correctly registered unless a abbreviation also was defined in the markdown.

Deprecations

The following methods and settings have been deprecated in favor of the new configuration system:

  • isEnabled: Use config()->get() instead.
  • setSetting, setSettings: Use config()->set() instead.
  • getSetting, getSettings: Use config()->get() instead.
  • abbreviations.allow_custom_abbr: Use abbreviations.allow_custom instead.
  • abbreviations.predefine: Use abbreviations.predefined instead.
  • emphasis.marking: Use emphasis.mark instead.
  • headings.allowed: Use headings.allowed_levels instead.
  • smarty: Use smartypants instead.
  • smarty.substitutions.left-angle-quote: Use smartypants.substitutions.left_angle_quote instead.
  • smarty.substitutions.left-double-quote: Use smartypants.substitutions.left_double_quote instead.
  • smarty.substitutions.left-single-quote: Use smartypants.substitutions.left_single_quote instead.
  • smarty.substitutions.right-angle-quote: Use smartypants.substitutions.right_angle_quote instead.
  • smarty.substitutions.right-double-quote: Use smartypants.substitutions.right_double_quote instead.
  • smarty.substitutions.right-single-quote: Use smartypants.substitutions.right_single_quote instead.
  • toc.toc_tag: Use toc.tag instead.
  • markup: Use allow_raw_html instead.
  • setTagToc(): Use the new configuration system instead, config()->set('toc.tag', '[TOC]').
  • toc.headings: Use toc.levels instead.

Backward Compatibility

All changes in this release are backward compatible, ensuring that existing functionality remains unaffected.

v1.2.9

17 Mar 05:51
Compare
Choose a tag to compare

Fixed a bug where block math written on the same line breaks the formatting #65

Full Changelog: v1.2.8...v1.2.9

v1.2.8

15 Mar 13:15
Compare
Choose a tag to compare

Fixing a bug where detection of Parsedown version fails do to suffix

Full Changelog: v1.2.7...v1.2.8

v1.2.7

12 Mar 21:24
Compare
Choose a tag to compare

Fixes issue:

  • Fixed a issue where characters got cut when using smartypants #61

Full Changelog: v1.2.6...v1.2.7

v1.2.6

08 Mar 05:55
d55bf05
Compare
Choose a tag to compare

What's Changed

  • Added fallback for environments there does not have the mbstring module

Full Changelog: 1.2.5...v1.2.6

1.2.5

22 Feb 07:00
0c26b51
Compare
Choose a tag to compare

What's Changed

  • Fixed a issue where setSetting and isEnabled didn't handle arrays correct #53

Full Changelog: 1.2.4...1.2.5

1.2.4

18 Feb 12:17
b599a67
Compare
Choose a tag to compare

What's Changed

  • Added missing check for allowed headings by @BenjaminHoegh in #56
  • Fixes bug there prevented blacklist from working on custom ids by @BenjaminHoegh in #57
  • Fixes issue with suffix for duplicate headers and blacklisted by @BenjaminHoegh in #58
  • Fix trailing space breaking blocks if placed after the start delimiter or end delimiter. by @brainexcerpts in #55
  • Fix for ToC not able to be disabled when using text() by @BenjaminHoegh in #59

Full Changelog: v1.2.3...1.2.4

v1.2.3

14 Feb 21:44
e184b3c
Compare
Choose a tag to compare

What's Changed

  • Fix syntax errors by @brainexcerpts in #51
  • Splittet getSetting into two functions getSetting and isEnabled

New Contributors

Full Changelog: v1.2.2...v1.2.3