mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 12:54:28 +03:00
af27bce2e2
While Bird Style literate mode is useful, it does not lend itself well to more modern markdown-like notations such as Org-Mode and CommonMark. This commit extends Idris2's existing literate mode to recognise both 'visible' and 'invisible' code blocks and lines in predefined markdown styles. The styles and their elements are: + Bird Style :: `>` denotes a visible code line, `<` a hidden code line. + OrgMode :: Org Mode source blocks for idris are recognised as visible code blocks, and comment blocks are invisible code blocks. Invisible code lines are denoted with `#+IDRIS:`. + CommonMark :: Only code blocks denoted by standard code blocks labelled as idris are recognised. For backwards compatibility, we recognise literate modes by file extension: + Bird Style :: `.lidr` + OrgMode :: `.org` + CommonMark :: `.md` In future we should add support for literate `LaTeX` files, and more intelligent processing of literate documents using a pandoc like library in Idris such as: [Edda](https://github.com/jfdm/edda). |
||
---|---|---|
.. | ||
expected | ||
IEdit.lidr | ||
input | ||
run |