Closed willpracht closed 9 years ago
If post.player[post.player.length - 1].embed_code === false, set post.body to empty string instead, keeping pandoc from throwing error.
post.player[post.player.length - 1].embed_code === false
post.body
I noticed on a few of my posts that I had false set for all of the embed_code values.
false
embed_code
When post.body was passed into pandoc as false, pandoc would throw an error.
This isn't the most elegant solution, admittedly.
Thanks!
If
post.player[post.player.length - 1].embed_code === false
, setpost.body
to empty string instead, keeping pandoc from throwing error.I noticed on a few of my posts that I had
false
set for all of theembed_code
values.When
post.body
was passed into pandoc asfalse
, pandoc would throw an error.This isn't the most elegant solution, admittedly.