github withastro/astro @astrojs/markdown-remark@7.1.0

11 hours ago

Minor Changes

  • #15340 10a1a5a Thanks @trueberryless! - Updates createMarkdownProcessor to support advanced SmartyPants options.

    The smartypants property in AstroMarkdownOptions now accepts Smartypants options, allowing fine-grained control over typography transformations (backticks, dashes, ellipses, and quotes).

    import { createMarkdownProcessor } from '@astrojs/markdown-remark';
    
    const processor = await createMarkdownProcessor({
      smartypants: {
        backticks: 'all',
        dashes: 'oldschool',
        ellipses: 'unspaced',
        openingQuotes: { double: '«', single: '‹' },
        closingQuotes: { double: '»', single: '›' },
        quotes: false,
      },
    });

    For the up-to-date supported properties, check out the retext-smartypants options.

Don't miss a new astro release

NewReleases is sending notifications on new releases.