micro
micro copied to clipboard
Markdown parsing for `**styles**` interrupted after open-bracket `(`.
Description of the problem or steps to reproduce
- Open new tab in micro
- Save as markdown (
myFile.md
) - Type
This is **bold** and highlighted - but (**this is not**). The parens interrupt parsing.
Specifications
Version 2.0.8 sudo apt get install -y micro
Commit hash: N/A OS: Pop OS 21.04 Terminal: ZSH
It is because highlighting rules defined in yaml syntax file for markdown allows only space characters before emphasized part. There (^|[[:space:]])(_[^ ][^_]*_|\\*[^ ][^*]*\\*)
. If you need to allow highlighting after (
you need to create custom syntax file in .config/micro/syntax/markdown.md
(maybe the path a bit different) and replace there (^|[[:space:]])
to (^|[[:space:]]|\()