Commit fecbdda
committed
Write new Format and Formats types, some helper functions
A new Format type enumerates exactly what formats Pandoc can recognize
in some way (input, output, raw content).
A new Formats type and related functions can be used in future
IfFormatBlock and IfFormatInline blocks, and are used to implement the
castsTo function that writers can use to determine when they can
include raw content in their output.1 parent 8e9ca37 commit fecbdda
File tree
4 files changed
+435
-0
lines changed- src/Text/Pandoc
- test
4 files changed
+435
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
0 commit comments