micro icon indicating copy to clipboard operation
micro copied to clipboard

Markdown parsing for `**styles**` interrupted after open-bracket `(`.

Open williamflynt opened this issue 3 years ago • 1 comments

Description of the problem or steps to reproduce

  1. Open new tab in micro
  2. Save as markdown (myFile.md)
  3. 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

williamflynt avatar Nov 29 '21 00:11 williamflynt

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:]]|\()

dustdfg avatar Dec 12 '23 12:12 dustdfg