Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Commit

Permalink
Fix Error due to change in pandoc AST Vinai#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahtiar Gadimov committed Aug 15, 2019
1 parent 4538964 commit 293d01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandocfilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public static function toJSONFilter($action, $source = null)
} else {
$format = '';
}
$altered = self::walk($doc, $action, $format, $doc[0]->unMeta);
$json = json_encode($altered, JSON_HEX_TAG|JSON_HEX_AMP|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
$doc->blocks = self::walk($doc->blocks, $action, $format, $doc->meta);
$json = json_encode($doc, JSON_PRETTY_PRINT);

echo $json . PHP_EOL;
}
Expand Down

0 comments on commit 293d01d

Please sign in to comment.