Skip to content

Commit

Permalink
Disable fenced code attributes extension for Remark
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Apr 30, 2017
1 parent 5c58b47 commit da6a8fc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Views.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,15 @@ renderPrintStylesheet = do
-- | Remark can only render the pipe tables. Disable the other kinds
remarkOptions :: WriterOptions
remarkOptions =
def {writerExtensions = writerExtensions def S.\\ otherTableExtensions}
def {writerExtensions = writerExtensions def S.\\ remarkUnsupported}
where
otherTableExtensions =
S.fromList [Ext_simple_tables, Ext_multiline_tables, Ext_grid_tables]
remarkUnsupported =
S.fromList
[ Ext_simple_tables
, Ext_multiline_tables
, Ext_grid_tables
, Ext_fenced_code_attributes
]

-- | Remark relies on "---" being a slide separator, Pandoc makes it into a
-- horizontal line
Expand Down

0 comments on commit da6a8fc

Please sign in to comment.