Hi all,
I made a Markdown format: Markdown format.bcpkg.
It is somewhat quick and dirty but it gets the job done. Some of the rules are extensions used by mkdocs.
I noticed that a lot of regular expressions stop working if you anchor them to the beginning of a line. For example:
"!!!" will match "abc !!! def", but "^!!!" will not match "!!! abc". Similarly, "^\s*\-\s+" will not match " - abcdef".
I also tried parsing things like _italic_ and **bold**, but ran into the problem that a false positive may eat up the entire rest of the document. I’m not sure as to what rules markdown parsers actually use to consider an underscore to be the start or end of a span.
For people using this format: this defines a few new syntax highlighting elements, so go into tools › options › colors, fonts › file views, and set up the formatting (eg. change H1 to bold).
Cheers,
Roeland
I made a Markdown format: Markdown format.bcpkg.
It is somewhat quick and dirty but it gets the job done. Some of the rules are extensions used by mkdocs.
I noticed that a lot of regular expressions stop working if you anchor them to the beginning of a line. For example:
"!!!" will match "abc !!! def", but "^!!!" will not match "!!! abc". Similarly, "^\s*\-\s+" will not match " - abcdef".
I also tried parsing things like _italic_ and **bold**, but ran into the problem that a false positive may eat up the entire rest of the document. I’m not sure as to what rules markdown parsers actually use to consider an underscore to be the start or end of a span.
For people using this format: this defines a few new syntax highlighting elements, so go into tools › options › colors, fonts › file views, and set up the formatting (eg. change H1 to bold).
Cheers,
Roeland
Comment