feat(core): add siteConfig.markdown.emoji config option to disable remark-emoji (#11282)

This commit is contained in:
Sébastien Lorber 2025-06-24 16:38:08 +02:00 committed by GitHub
parent 96c38d5fdd
commit e14caf1f78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 87 additions and 9 deletions

View file

@ -136,6 +136,16 @@ export type MarkdownConfig = {
*/
mermaid: boolean;
/**
* Allow remark-emoji to convert emoji shortcodes to Unicode emoji.
* - `true` (default): enables the remark-emoji plugin to convert shortcodes
* - `false`: disables the remark-emoji plugin
*
* @see https://github.com/rhysd/remark-emoji
* @default true
*/
emoji: boolean;
/**
* Gives opportunity to preprocess the MDX string content before compiling.
* A good escape hatch that can be used to handle edge cases.