aaren / notedown

Markdown <=> IPython Notebook
BSD 2-Clause "Simplified" License
855 stars 115 forks source link

Option --match not-fenced #25

Closed asimjalis closed 9 years ago

asimjalis commented 9 years ago

It would be nice to have a "--match indented". In other words, the opposite of "--match fenced".

Benefits are:

  1. Easy to indicate syntax of non-executable code (using fencing) so IPYN syntax highlighting can work.
  2. Easy to distinguish executable vs non-executable code.
aaren commented 9 years ago

So notedown --match indented would only execute indented code and would leave fenced code as-is in a markdown cell?

aaren commented 9 years ago

You can already do notedown --match strict, which requires executed code to have .input in the classes, e.g.

not executed


```{.input}
executed
not executed
executed
aaren commented 9 years ago

Not going to add this unless there is more demand and the current solution (--match strict) is insufficient.