Open CavalloneChen opened 5 years ago
Would you like them in preview mode, edit mode, or both?
IMHO just display them in preview mode is a good option.
It looks like there's a plugin for our highlighter for adding line numbers, but maybe it would be better to just render a read-only editor in place of those codeblocks, so that also the highlighting would be perfectly consistent between preview and edit mode #167. 🤔
Closing this in favor of https://github.com/notable/notable/issues/719
I'm reopening this has now code blocks are rendered via Monaco, but not by embedding a whole editor for each code block, which wouldn't have been great for performance.
I agree that this would be a valuable feature. Thanks Scott
+1 please implement this.
Feature description
Add option to enable line numbers in code blocks.
Feature motivation
Helps to refer to certain lines.