-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to allow line-anchored markup in templates.
Previously, newlines were allowed inside templates, but line-anchored markup (lists, verbatim, etc.) was not possible. These changes make it possible to have line anchored markup render correctly when inside templates. The changes move delimiters for templates ("|" and "}}") up to the block level, along with list, text, and others. This way, the delimiters will still match as text when they are not part of a template. However, they are easily removed for the new arg_markup, arg_block, etc. rules that match more markup inside templates, without missing the template's delimiters. These changes should help when writing templates that don't use formatted parameters, like syntax highlighting templates. Those templates will now have access to the original whitespace that was previously stripped by the rule, since whitespace rules around template arguments were removed--the markup rules handle whitespace themselves. The line rule is now gone. It was merged into the block rule (and now arg_block), which makes more sense since line contained a couple of multi-line rules. It was intended to mean line-anchored, but wasn't really necesary and it made sense to remove it. Next problems to solve: 1. | and }}, when caught at the block level, will be rendered as paragraphs 2. In general, html paragraphs will need to be reworked 3. Templates that contain "|" as content will be difficult to write
- Loading branch information
Showing
1 changed file
with
62 additions
and
90 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