forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-file-transclusion' (closes #4)
- Loading branch information
Showing
13 changed files
with
494 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Name,Surname,Born | ||
Albert,Einstein,1879 | ||
Marie,Curie,1867 | ||
Thomas,Edison,1847 |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"weirdextension": "weirdLANGUAGE" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"js": "JavaScript" | ||
} |
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
16 changes: 16 additions & 0 deletions
16
tests/testfiles/lunamark-markdown/content-blocks-language-map.test
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\def\markdownOptionContentBlocks{true} | ||
\def\markdownOptionContentBlocksLanguageMap{markdown-languages-nonstandard.json} | ||
<<< | ||
This test ensures that the Lua `contentBlockLanguages` option correctly | ||
propagates through the plain TeX interface. | ||
|
||
/basename.WEIRDextension (title) | ||
>>> | ||
codeSpan: contentBlockLanguages | ||
interblockSeparator | ||
BEGIN contentBlockCode | ||
- suffix: weirdextension | ||
- language: weirdLANGUAGE | ||
- URI: basename.WEIRDextension | ||
- title: title | ||
END contentBlockCode |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
\def\markdownOptionContentBlocks{true} | ||
<<< | ||
This test ensures that the Lua `contentBlocks` option correctly propagates | ||
through the plain TeX interface. | ||
/not/a/translusion.md | ||
|
||
/not/a/ | ||
transclusion/either.md | ||
|
||
<http://example.com/minard.jpg> | ||
<http://example.com/minard.jpg> <-- This is just a link. | ||
|
||
htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) | ||
/Flowchart.png "Engineering Flowchart" | ||
|
||
/Savings Account.csv 'Recent Transactions' | ||
/Example.jS (Source code) | ||
/Lorem Ipsum.txt | ||
>>> | ||
codeSpan: contentBlocks | ||
interblockSeparator | ||
interblockSeparator | ||
BEGIN contentBlockOnlineImage | ||
- suffix: jpg | ||
- URI: http://example.com/minard.jpg | ||
- title: | ||
END contentBlockOnlineImage | ||
interblockSeparator | ||
BEGIN link | ||
- label: http://example.com/minard.jpg | ||
- URI: http://example.com/minard.jpg | ||
- title: | ||
END link | ||
interblockSeparator | ||
BEGIN contentBlockOnlineImage | ||
- suffix: jpg | ||
- URI: htt(p:/)/exam(ple.c)om/m(inard.jpg | ||
- title: Napoleon's disastrous Russian campaign of 1812 | ||
END contentBlockOnlineImage | ||
interblockSeparator | ||
BEGIN contentBlock | ||
- suffix: png | ||
- URI: Flowchart.png | ||
- title: Engineering Flowchart | ||
END contentBlock | ||
interblockSeparator | ||
BEGIN contentBlock | ||
- suffix: csv | ||
- URI: Savings Account.csv | ||
- title: Recent Transactions | ||
END contentBlock | ||
interblockSeparator | ||
BEGIN contentBlockCode | ||
- suffix: js | ||
- language: JavaScript | ||
- URI: Example.jS | ||
- title: Source code | ||
END contentBlockCode | ||
interblockSeparator | ||
BEGIN contentBlock | ||
- suffix: txt | ||
- URI: Lorem Ipsum.txt | ||
- title: | ||
END contentBlock |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<<< | ||
This test ensures that the Lua `contentBlocks` option is disabled by default. | ||
/not/a/translusion.md | ||
|
||
/not/a/ | ||
transclusion/either.md | ||
|
||
<http://example.com/minard.jpg> | ||
<http://example.com/minard.jpg> <-- This is just a link. | ||
|
||
htt(p:/)/exam(ple.c)om/m\(inard.jpg (Napoleon's disastrous Russian campaign of 1812) | ||
/Flowchart.png "Engineering Flowchart" | ||
|
||
/Savings Account.csv 'Recent Transactions' | ||
/Example.swift (Source code) | ||
/Lorem Ipsum.txt | ||
>>> | ||
codeSpan: contentBlocks | ||
interblockSeparator | ||
interblockSeparator | ||
BEGIN link | ||
- label: http://example.com/minard.jpg | ||
- URI: http://example.com/minard.jpg | ||
- title: | ||
END link | ||
BEGIN link | ||
- label: http://example.com/minard.jpg | ||
- URI: http://example.com/minard.jpg | ||
- title: | ||
END link | ||
interblockSeparator | ||
interblockSeparator |