Skip to content

Releases: hashicorp/remark-plugins

2.2.1

18 May 22:53
786be50
Compare
Choose a tag to compare

Patches

  • Remove publish script: 45162d6
  • Fix a bug where escaped anchor link sequences were scooping up one too many nodes: #12

2.2.0

21 Apr 23:19
9202c29
Compare
Choose a tag to compare

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

  • Make aliases/compat slugs appear as the primary permalink, apply compatSlug to inlinecode: #11
  • Patch an edge case in anchor link processing: 24ce209

v2.1.0

10 Apr 19:58
c0066df
Compare
Choose a tag to compare

Anchor links aliases can now handle scenarios in which the alias is broken into multiple nodes by remark's parser. This was previously caused by, for example, escaping any character within an alias, like ((#\_foo))

v2.0.3

25 Mar 19:20
174335e
Compare
Choose a tag to compare

⚠️ This release is guaranteed to break existing code, upgrade carefully ⚠️

  • breaking: Deprecate heading-linkable and inline-code-linkable, replace with anchor-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

12 Mar 18:44
fca73b9
Compare
Choose a tag to compare
v2.0.3-5 Pre-release
Pre-release
  • Add fallback for headline stringification

v2.0.3-4

12 Mar 17:28
e55b8f4
Compare
Choose a tag to compare
v2.0.3-4 Pre-release
Pre-release
  • 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

12 Mar 16:03
583d00d
Compare
Choose a tag to compare
v2.0.3-3 Pre-release
Pre-release
  • BREAKING: heading-linkable and inline-code-linkable are now deprecated and replaced by anchor-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

10 Mar 22:06
f324f68
Compare
Choose a tag to compare
v2.0.3-1 Pre-release
Pre-release
  • BREAKING: allPlugins is now a function that returns an array, rather than an array
  • compatibilitySlug feature added to headings-linkable
  • fix a large bug in the inline-code-linkable plugin
  • a lot more tests

2.0.3-0...v2.0.3-1

v2.0.2-0

06 Mar 21:59
4dd004d
Compare
Choose a tag to compare
v2.0.2-0 Pre-release
Pre-release
  • a couple fixes in the slug generation algorithm
  • improve generateSlug function interface to take text first, then list of existing slugs
  • improve tests

v2.0.1-0...v2.0.2-0

v1.0.0

01 Nov 15:28
Compare
Choose a tag to compare

v0.2.0...v1.0.0