preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

Should contain `code` in headings #660

Closed KSR-Yasuda closed 2 months ago

KSR-Yasuda commented 4 months ago

If you write some C function spec as a code block in heading, it may break.

# foo `func(int a, int **ppb, int *pc)` bar

foobar

vim_markdown_20240625_123527

The part of ** is considered as a beginning of bold style.

Shouldn't you include mkdCode in mkdHeadingContent to avoid this?

KSR-Yasuda commented 2 months ago

Thank you for merging!