release notes
release notes
Published 2 weeks ago
#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.
release notes
Published 2 weeks ago
#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.
The web framework for content-driven websites. ⭐️ Star to support our work!