Releases: BenjaminHoegh/ParsedownExtended
v1.4.1
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
- 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
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 istrue
. - Noopener: Adds
noopener
to improve security when opening external links. Default istrue
. - 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.
- Control the enablement of external links. Default is
- External Links: Added detailed configuration options for external links:
-
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.
- Ability to set custom alerts using the new
-
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()
andconfig()->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
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
Fixing a bug where detection of Parsedown version fails do to suffix
Full Changelog: v1.2.7...v1.2.8
v1.2.7
Fixes issue:
- Fixed a issue where characters got cut when using smartypants #61
Full Changelog: v1.2.6...v1.2.7
v1.2.6
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
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
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
What's Changed
- Fix syntax errors by @brainexcerpts in #51
- Splittet
getSetting
into two functionsgetSetting
andisEnabled
New Contributors
- @brainexcerpts made their first contribution in #51
Full Changelog: v1.2.2...v1.2.3