For each code block add a #line directive just above it with the line number and file name of the markdown source file. This way compiler errors point to the correct position in the markdown file.
NOTE: It might be necessary to also add a line directory under included sub-blocks, as one block can be composed of arbitrarily nested blocks, leading to jumping in the line numbering (so basically each block has a line directive on enter and on exit)
NOTE2: Of course this feature needs to be optional, as not every language supports it. (and maybe not every user cares about it)
For each code block add a
#linedirective just above it with the line number and file name of the markdown source file. This way compiler errors point to the correct position in the markdown file.NOTE: It might be necessary to also add a line directory under included sub-blocks, as one block can be composed of arbitrarily nested blocks, leading to jumping in the line numbering (so basically each block has a line directive on enter and on exit)
NOTE2: Of course this feature needs to be optional, as not every language supports it. (and maybe not every user cares about it)