Skip to content

Commit

Permalink
Update html filters
Browse files Browse the repository at this point in the history
Match new pandoc / pandoc-filter API
  • Loading branch information
noelwelsh committed Jan 22, 2024
1 parent 5c8a3e7 commit a98dd17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filters/html/solutions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require("underscore");
const pandoc = require("pandoc-filter");

pandoc.stdio(function (type, value, format, meta) {
pandoc.stdio(function ({t: type, c: value}, format, meta) {
switch (type) {
case "Header": {
const [level, [ident, classes, kvs], body] = value;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/html/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const pandoc = require("pandoc-filter");
// tables and cache them here to prevent infinite recursion.
const visited = [];

function action(type, value, format, meta) {
function action({t: type, c: value}, format, meta) {
if (type === "Table") {
const hash = JSON.stringify(value);

Expand Down

0 comments on commit a98dd17

Please sign in to comment.