The title pretty much says it all: I'd like to write a paragraph in monospaced
font using GFM, but without any programming language's syntax highlighting. I'd think it would be
```txt
or
```text
or maybe nothing:
```
But no luck. Is this even possible with GFM?
Markdown allows monospaced text within bold or italic sections, but not vice versa - reStructuredText allows neither. In summary, the common inline markup is the following: Mark *italic text* with one asterisk, **bold text** with two. For ``monospaced text``, use two "backquotes" instead.
Monospaced text is marked with two backquotes "``" instead of asterisks; no bold or italic is possible within it (asterisks just represent themselves), although in some contexts, code syntax highlighting may be applied.
You can also create a Markdown hyperlink by highlighting the text and using the keyboard shortcut Command + V .
Examples of monospaced typefaces include Courier, Roboto Mono, Inconsolata, Source Code Pro, and IBM Plex Mono.
Try indenting with four spaces (i.e. a normal markdown code block) rather than using a fenced code block. This worked for me in GitLab. In GitHub just ``` worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With