Skip to content

Commit

Permalink
add support for tracing documents with HorizontalRule
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Feb 14, 2024
1 parent 84c981f commit fcbd784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/trace-viewer/convert-pandoc-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ const convert = (data) => {
text: data.c[1],
};
}
if (data.t === "HorizontalRule") {
return data;
}
throw new Error(`Can't handle type ${data.t}`);
} else if (typeof data === "string") {
return data;
Expand Down

0 comments on commit fcbd784

Please sign in to comment.