Skip to content
Discussion options

You must be logged in to vote

This is expected Markdown behaviour, not a MarkText bug. In Markdown (CommonMark/GFM), a line that starts with a tab or 4+ spaces, when it isn't inside a list, is an indented code block (CommonMark spec). MarkText follows the spec, so it shows those paragraphs as code; that's what the "language" box is for. Other Markdown viewers (GitHub, VS Code, etc.) render them as code too.

Markdown has no syntax for first-line paragraph indentation, but there are a few ways to get the look you want:

1. Use space entities instead of a tab

  This paragraph starts with an indent and stays a normal paragraph.

  is an "em space" (entity references); two of them look like a tab.   …

Replies: 1 comment 1 reply

Comment options

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

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