Skip to content

Help to deal with inline code vs fenced code without language hint after 9.0.0 #1346

Discussion options

You must be logged in to vote

I'd highly recommend reading https://unifiedjs.com/learn/
To understand what remark plugins are and how to make/maintain them.
Here is a one-liner example

() => (tree: Root) => { visit(tree, 'code', (node) => { node.lang = node.lang ?? 'plaintext'; }); }

https://stackblitz.com/edit/github-6nizfy-pv8tlr

Replies: 6 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@king8fisher
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Comment options

You must be logged in to vote
4 replies
@ChristianMurphy
Comment options

@king8fisher
Comment options

@ChristianMurphy
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
1 reply
@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
3 replies
@ChristianMurphy
Comment options

@king8fisher
Comment options

@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
2 replies
@ChristianMurphy
Comment options

Answer selected by king8fisher
@king8fisher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants