Code blocks support for all formats. Single line break support #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
For more information, see the Contributing Guide.
Description
Add support for embedding markdown code blocks in the heredoc of a variable description.
For the markdown table format, the code blocks are formatted as HTML on a single line.
For the markdown document format, the code blocks are kept untouched.
Support for single-line breaks: when the line ends with 2 spaces, place
a single
<br>
for the markdown table format.For the other format, make sure to not trim the line and keep the newline in place.
This pull request supports rendering
Into
Issues Resolved
No issues were previously filed.
Checklist
Put an
x
into all boxes that apply:Tests
make test
.I have done rushed job at keeping the tests suite green after adding a variable to the examples folder. That final pass of sanitization for the document format has a single merit: "it works".
I would not merge it though.
Please let me know if there is sufficient interest for this new feature and I'll put in some effort in refactoring the code.
Documentation
Code Style