Skip to content

Releases: hashicorp/remark-plugins

3.3.0

08 Nov 22:49
Compare
Choose a tag to compare

This release adds support for a new headings option in the anchor-links plugin.

See PR #38 or the Options section of the anchor-links README for full details.

3.2.2

05 Nov 15:03
Compare
Choose a tag to compare

This release fixes previously invalid values for aria-hidden in the anchor-links plugin.

See PR #35 for full details.

3.2.1

06 Oct 17:26
Compare
Choose a tag to compare

This release removes the alert role from the custom alert remark plugin to create a better experience for folks using screen readers.

See PR for full details.

3.2.0

24 May 17:23
aac07b5
Compare
Choose a tag to compare

feat(include-markdown): support MDX custom components

This release adds support for custom components in partials @include'd using the include-markdown plugin.

This feature can be enabled by passing { resolveMdx: true } to the include-markdown plugin's options. For example, using next-mdx-remote, you might call serialize like:

const mdxSource = await serialize(source, {
  mdxOptions: {
    remarkPlugins: [[includeMarkdown, { resolveMdx: true }]],
  },
})

For further details, see #28 .

3.1.1

15 Jan 16:57
2a8477a
Compare
Choose a tag to compare

This release fixes a minor issue where empty strings passed to the typography plugin would not trigger the expected behaviour of omitting a typography class from the target element. This release also includes some documentation changes.

  • Document duplication in Consul: #23 (@lkysow)
  • Allow empty strings to prevent typography class additions: #24

3.1.0

05 Jan 20:15
df606ef
Compare
Choose a tag to compare

This release adds support for includeMarkdown and typography options.

Minor Changes

[canary] Expose typography options in allPlugins

18 Dec 21:48
7a0ab8a
Compare
Choose a tag to compare

Patches

  • Expose typography options in allPlugins: 91552bd

[canary] Add map option to typography plugin

18 Dec 21:46
33f7675
Compare
Choose a tag to compare

Minor Changes

  • Add custom className map option to typography plugin: b8228c2

Patches

  • Visit listItem nodes directly, rather than through listNode.children: d903786
  • Update typography plugin readme: 663a89a
  • Add release:pre cmd, bump to expected release: ee16098

3.0.0

10 Jun 23:12
6deb1e7
Compare
Choose a tag to compare

This release adds a feature to the include-markdown plugin, for which any file with a .md or .mdx extension will behave identically, but files with any other extension will be included as plaintext, within a code block.

This is marked as major, as it could potentially be breaking if you were including markdown content from files with an extension that is not .md or .mdx.

Details in #14

2.2.2

02 Jun 20:59
885c596
Compare
Choose a tag to compare

This release patches a bug in which ((.*)) would be matched following a headline or list item with inline code in the anchor links plugin. Now, the minimum requirement is ((#.*))

Patches

  • Increase requirements for minimum viable regex to be met: #13
  • Add extra note and tests for previous pr: 1550066