Identify the code section type automatically
harendra-kumar opened this issue · comments
Harendra Kumar commented
There are three types of code sections:
- standalone
- ghci shared
- doctest
Instead of using a markdown tag we can identify these automatically. That will help in using the same haskell
markdown tag so that it works with github language highlighting.
The different types of codes can be identified as follows:
- if the first line starts with
>>>
then it is doctest - if the first line is a comment
{- standalone -}
then it is standalone Haskell ghci code - otherwise it is ghci shared code