1module Generate.Markdown where
4import qualified Data.Set as Set
6toHtml :: String -> String
7toHtml = writeHtmlString writeOptions . readMarkdown readOptions
10 def { readerExtensions = elmExtensions
11 , readerApplyMacros = False
15 def { writerExtensions = elmExtensions
16 , writerHighlight = True
19elmExtensions :: Set.Set Extension
20elmExtensions = Set.fromList
22 , Ext_fenced_code_blocks
23 , Ext_fenced_code_attributes
24 , Ext_backtick_code_blocks
25 , Ext_inline_code_attributes
26 , Ext_markdown_in_html_blocks
27 , Ext_escaped_line_breaks
30 , Ext_definition_lists
32 , Ext_all_symbols_escapable
33 , Ext_intraword_underscores
34 , Ext_blank_before_blockquote
35 , Ext_blank_before_header
36 , Ext_auto_identifiers
37 , Ext_header_attributes
38 , Ext_implicit_header_references
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list