Skip to content

[remark] How to do inline code? #785

Answered by ChristianMurphy
WillowP asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the kind words @WillowP!
Inline code snippets use backticks https://commonmark.org/help/

const mrkdwn = `# My Article
I'm talking about some code that looks like this \`const noOp = () => {}\`!`

runnable example: https://codesandbox.io/s/react-markdown-debug-forked-253d7

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by WillowP
Comment options

You must be logged in to vote
0 replies
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