Fix sample.lua barfing on Raw data (#3358)
* Fix for "pandoc: user error (Incorrect result type (string expected, got nil))." when the source format contains Raw data. * Update sample.lua
This commit is contained in:
parent
117f3d2323
commit
5bd571f499
1 changed files with 4 additions and 0 deletions
|
@ -173,6 +173,8 @@ end
|
|||
function RawInline(format, str)
|
||||
if format == "html" then
|
||||
return str
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -321,6 +323,8 @@ end
|
|||
function RawBlock(format, str)
|
||||
if format == "html" then
|
||||
return str
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue