mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
feat(core): add siteConfig.markdown.emoji
config option to disable remark-emoji
(#11282)
This commit is contained in:
parent
96c38d5fdd
commit
e14caf1f78
7 changed files with 87 additions and 9 deletions
10
packages/docusaurus-types/src/markdown.d.ts
vendored
10
packages/docusaurus-types/src/markdown.d.ts
vendored
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue