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
commit5bd571f499baff36176f073bd3ab879114ad6890
authorbumper314 <me@saudette.net>
dateWed 18 Jan 2017, 04:47 (10 years ago)
parent117f3d2
data/sample.lua+4
@@ -173,6 +173,8 @@ end
173173function RawInline(format, str)
174174 if format == "html" then
175175 return str
176+ else
177+ return ''
176178 end
177179end
178180
@@ -321,6 +323,8 @@ end
321323function RawBlock(format, str)
322324 if format == "html" then
323325 return str
326+ else
327+ return ''
324328 end
325329end
326330