File tree 1 file changed +2
-21
lines changed
src/Text/Pandoc/Lua/Marshal
1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import Text.Pandoc.Lua.Marshal.MathType (peekMathType, pushMathType)
47
47
import Text.Pandoc.Lua.Marshal.QuoteType (peekQuoteType , pushQuoteType )
48
48
import Text.Pandoc.Lua.Marshal.Shared (walkBlocksAndInlines )
49
49
import Text.Pandoc.Lua.Walk (SpliceList , Walkable , walkSplicing , walkStraight )
50
+ import qualified Data.ByteString.Char8 as Char8
50
51
import qualified Data.Text as T
51
52
import qualified Text.Pandoc.Builder as B
52
53
@@ -376,27 +377,7 @@ typeInline = defsumtype "Inline"
376
377
<#> parameter peekFilter " Filter" " lua_filter" " table of filter functions"
377
378
=#> functionResult pushInline " Inline" " modified element"
378
379
]
379
- (\ case
380
- Cite {} -> " Cite"
381
- Code {} -> " Code"
382
- Emph {} -> " Emph"
383
- Image {} -> " Image"
384
- LineBreak {} -> " LineBreak"
385
- Link {} -> " Link"
386
- Math {} -> " Math"
387
- Note {} -> " Note"
388
- Quoted {} -> " Quoted"
389
- RawInline {} -> " RawInline"
390
- SmallCaps {} -> " SmallCaps"
391
- SoftBreak {} -> " SoftBreak"
392
- Space {} -> " Space"
393
- Span {} -> " Span"
394
- Strikeout {} -> " Strikeout"
395
- Strong {} -> " Strong"
396
- Str {} -> " Str"
397
- Subscript {} -> " Subscript"
398
- Superscript {} -> " Superscript"
399
- Underline {} -> " Underline" )
380
+ (Name . Char8. pack . showConstr . toConstr)
400
381
[ defconstructor " Cite"
401
382
" Citation"
402
383
[ (" citations" , citationsProperty)
You can’t perform that action at this time.
0 commit comments