-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
146 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Asciidoc | ||
|
||
``` markdown {#input} | ||
Before the page break. | ||
|
||
\newpage | ||
|
||
First line on a new page. | ||
``` | ||
|
||
Asciidoc uses three *smaller-than* characters to mark a page | ||
break. | ||
|
||
``` asciidoc {#expected format="asciidoc"} | ||
Before the page break. | ||
|
||
<<< | ||
|
||
First line on a new page. | ||
|
||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Form Feed | ||
|
||
Form feed characters can be used in place of the `\newpage` | ||
command if the respective option is enabled: | ||
|
||
``` markdown {#input} | ||
--- | ||
pagebreak: | ||
break-on: | ||
form-feed: true | ||
--- | ||
|
||
Before the page break. | ||
|
||
|
||
|
||
First line on a new page. | ||
``` | ||
|
||
It becomes a `\newpage` command in LaTeX output. | ||
|
||
``` latex {#expected} | ||
Before the page break. | ||
\newpage{} | ||
First line on a new page. | ||
``` |
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,18 @@ | ||
## HTML | ||
|
||
``` markdown {#input} | ||
Before the page break. | ||
|
||
\newpage | ||
|
||
First line on a new page. | ||
``` | ||
|
||
Asciidoc uses three *smaller-than* characters to mark a page | ||
break. | ||
|
||
``` html {#expected} | ||
<p>Before the page break.</p> | ||
<div style="page-break-after: always;"></div> | ||
<p>First line on a new page.</p> | ||
``` |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## MS | ||
|
||
``` markdown {#input} | ||
Before the page break. | ||
|
||
\newpage | ||
|
||
First line on a new page. | ||
``` | ||
|
||
A page break is simply the `.bp` macro in MS: | ||
|
||
``` ms {#expected} | ||
.LP | ||
Before the page break. | ||
.bp | ||
.PP | ||
First line on a new page. | ||
``` |
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,5 @@ | ||
--- | ||
filters: | ||
- pagebreak.lua | ||
compare: strings | ||
--- |
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,35 @@ | ||
# Plaintext LaTeX Command | ||
|
||
When reading from a formats that doesn't support raw LaTeX | ||
snippets, the `plaintext-command` option must be enabled in order | ||
for the `\newpage` command being recognized as a page break | ||
marker. | ||
|
||
``` markdown {#input} | ||
--- | ||
pagebreak: | ||
break-on: | ||
plaintext-command: true | ||
--- | ||
|
||
Before the page break. | ||
|
||
\\newpage | ||
|
||
First line on a new page. | ||
``` | ||
|
||
Note that pandoc does not parse above as raw LaTeX due to the | ||
double-backslash, but the `plaintext-command` option ensures that | ||
the filter still recognizes it as a page break. | ||
|
||
``` latex {#expected} | ||
Before the page break. | ||
\newpage{} | ||
First line on a new page. | ||
``` | ||
|
||
Note that this option comes at the cost of slightly decreased | ||
performance. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Typst | ||
|
||
``` markdown {#input} | ||
Before the page break. | ||
|
||
\newpage | ||
|
||
First line on a new page. | ||
``` | ||
|
||
The `#pagebreak()` command is used for Typst. | ||
|
||
``` typst {#expected} | ||
Before the page break. | ||
#pagebreak() | ||
First line on a new page. | ||
``` |