forked from bytesparadise/libasciidoc
-
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.
refactor(parser): default subs on paragraphs and delimited blocks (by…
…tesparadise#688) Splitting the parsing in 3 stages: - the first parsing phase returns a `RawDocument` (new type) which contains `RawLine` elements as the content of delimited blocks, standalone paragraphs and paragraphs in continued list items (but NOT in list items) - the second phase applies all delimited block, paragraph and attribute substitutions and produces a `DraftDocument` (which now holds some attributes at its top-level) - the final phase takes care about sections, lists, preamble and table of contents (as before) Also: - using the new "MatchInlineElements" to check inline elements - paragraphs lines are now `[]interface{}` instead of `[][]interface{}`, which allows for containing a singular `types.RawLine` after the first parsing phase. Fixes bytesparadise#633 Signed-off-by: Xavier Coulon <[email protected]>
- Loading branch information
Showing
82 changed files
with
15,794 additions
and
17,303 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
Oops, something went wrong.