Omit lines that use pandoc 2.0's markdown divs #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nowadays pandoc includes extra metadata to delineate divs in bibliographies. It used to use HTML like
<div>
, but now it uses:::
. For instance, after exporting two entries withpandoc -t markdown-citations --wrap=none
, this is the resulting output:The
tail -n+5
part of the pandoc command inexportMarkdownReferences.sh
takes care of the first few lines with the parenthetical citations, but the oldgrep -v "</div>"
part of the command doesn't do anything anymore and the resulting Markdown text includes all the lines that start with:::
.This change to the pandoc command omits all lines that start with
:::
, resulting in this output: