Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for supporting School of Haskell Markdown #832

Closed
wants to merge 1 commit into from

Commits on Apr 18, 2013

  1. Add some support for School of Haskell markdown extensions.

    https://www.fpcomplete.com/school/how-to-use-the-school-of-haskell/soh-markdown
    
    School of Haskell markdown is mostly strict markdown with two extensions.
    
     - @@@ fences to 'hide solution'
     - ``` style github code blocks
    
    The current github code block parser only supports a single atttribute like:
    
     ``` haskell
    
    But School of Haskell (http://www.fpcomplete.org) allows multiple attributes like:
    
     ``` haskell active web
    
    This patch adds a new extension
    
        Ext_backtick_code_multi
    
    which could probably be better named. Or, perhaps the normal github parser should be extended to always allow this?
    
    The Markdown Reader has been extended with:
    
               <|> (guardEnabled Ext_backtick_code_multi >> ((\xs -> ("", xs, [])) <$> (identifier `sepBy1` (many1 (char ' ')))))
    
    Which could possibly be improved. The writer has been extended as well.
    stepcut committed Apr 18, 2013
    Copy the full SHA
    28a5f0e View commit details
    Browse the repository at this point in the history