Releases: hashicorp/remark-plugins
Releases · hashicorp/remark-plugins
2.2.1
2.2.0
This release makes it such that if an anchor link alias is used, it appears as the primary permalink, and the auto-generated slug is a backup. The logic here is that if an anchor link alias is provided, it's likely an explicitly intended target, and explicitly provided anchor links are more stable targets over time than headline text which can be accidentally changed.
Additionally, compatibilitySlug
previously did not apply to lists with inline code, now it does 🤗
Commits
v2.1.0
v2.0.3
- breaking: Deprecate
heading-linkable
andinline-code-linkable
, replace withanchor-links
which covers both - breaking: Change slug generation algorithm in
anchor-links
, any given permalink slug may be different. A compatibility slug and inline code prefix option have been added to help with compatibility with old slugs. - breaking: rather than using the class
anchor
for heading permalinks, we now use__permalink-h
. Inline code permalinks previously had no class, they now use__permalink-lic
- breaking:
allPlugins
is now a function that returns an array, rather than an array - A feature we're calling anchor link aliases has been added, in which markup like this
# Headline ((#alias, #alias))
can be used, and the double-paren syntax will be removed from the headline and added as additional anchor links to the element. - All dependencies brought up to date, many extra tests added, a major bug with nested lists fixed in inline code anchor generation
- CI fixed and running consistently on both windows and linux
v2.0.3-5
v2.0.3-4
- Revert code that put multiple ids on the same element - each compatibility slug and anchor link alias is back to having its own element in accordance with the html spec
- Fix circleci tests so that everything is no longer constantly failing, thank the bejesus
- Improve headline stringification to be 100% accurate no matter what type of node is included
- Remove unneeded dependencies, regenerate
package-lock
file - General code cleanup and improvements in comments and documentation
v2.0.3-3
- BREAKING:
heading-linkable
andinline-code-linkable
are now deprecated and replaced byanchor-links
- BREAKING: rather than using the class
anchor
for heading permalinks, we now use__permalink-h
. Inline code permalinks previously had no class, they now use__permalink-lic
- Compatibility slugs now add a second id rather than a separate element. This behavior is not valid according to the html spec, so it may be reverted pending browser testing
- A feature we're calling anchor link aliases has been added, in which markup like this
# Headline ((#alias, #alias))
can be used, and the double-paren syntax will be removed from the headline and added as additional anchor links to the element.
v2.0.3-1
- BREAKING:
allPlugins
is now a function that returns an array, rather than an array compatibilitySlug
feature added toheadings-linkable
- fix a large bug in the inline-code-linkable plugin
- a lot more tests
v2.0.2-0
- a couple fixes in the slug generation algorithm
- improve
generateSlug
function interface to take text first, then list of existing slugs - improve tests
v1.0.0
- change typography class names (#4) 50d818b
- 0.5.1 f96635e
- bugfix 2f92451
- add circle config 9d84968
- 0.5.0 b95502a
- Allow recursive includes (#7) 52aed66
- 0.4.0 0714d1e
- add resolveFrom option (#6) 15f1bfc
- 0.3.3 cfd1408
- and found another missing dep 82695f9
- 0.3.2 732bfbe
- one more dependency patch 4416a5f
- 0.3.1 1cbaa6d
- update deps and readme 0d4aa17
- 0.3.0 b154d70
- Add "include markdown" plugin (#5) 95f59e8