forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic support for table captions
In Pandoc, table captions (enabled by the `table_caption` option) can be entire paragraphs. This is a little difficult to parse, because we need to detect lines that might start a block quote, a code fence, or a heading, since we support parsing these without a preceding blank line. In the case of a code fence, we need to actually read the whole code fence to see if it is valid. Therefore, this commit implements only single-line captions. Progresses jgm#32
- Loading branch information
Showing
5 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,5 +158,5 @@ | |
textCite = {% | ||
\TEXTCITATIONS{#1}}, | ||
table = {% | ||
\TABLE{#1}{#2}} | ||
\TABLE{#1}{#2}{#3}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters