You could just use a markdown lib to compile those blocks.
You can concatenate 2 grammars to accomplish this as well. There is not yet a built in mechanism
in Grammar to import files, but that's probably something to add, so that it would be easier to rapidly
build languages that combine multiple stable grammars.
Going to close this to cleanup the issues. But it's another good vote for easier grammar concatenation. A number of things in the pipeline will make that more useful.
Would it be possible to use Markdown inside HTML?
Similar to how the
bern
tag works, but maybe referencing a different / imported Grammar?For example: