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:
bumper314 2017-01-18 04:47:15 -07:00 committed by John MacFarlane
parent 117f3d2323
commit 5bd571f499

View file

@ -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