Echo Area

TIL: How to Escape a Backtick in Markdown

6 February 2024 7:47 AM (til)

I needed to send a bit of inline code in some Markdown today and it needed to have a ? in it. I realized I hadn't done that before. I write code with ? in it somewhat frequently because Lisp uses it for quasi-quoting, but I always write everything in org syntax where you can use either = or ~. But in Markdown if you need to have a ? in your inline code you need to wrap your inline code with more ? characters.

`This is some inline code`
``This is some inline code with a ` (backtick) in it``
```This is some inline code with `` (two backticks) in it```

It looks like the sky might be the limit.

Comments are closed.