New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip HTML tags (but keep any text content) when rendering text #33
Merged
Merged
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7834c27
Render blockquote children recursively
mntn-xyz 34cd4c6
Remove fmt.Println
mntn-xyz 5df2399
Merge branch 'master' into blockquote
mntn-xyz 9e78c95
Integrate blockquote fix with textWithNewlineReplacement
mntn-xyz b4a9bea
Render HTML block content
mntn-xyz 8fdc8c0
Remove nonewline change, does not apply
mntn-xyz 25aec5f
Merge branch 'master' into blockquote
mntn-xyz a13aa93
Implement tag stripping for HTML blocks
mntn-xyz 9b4b07c
Improve handling of HTMLBlock vs HTMLSpan
mntn-xyz 1f902d1
Fix hardbreak
mntn-xyz 6dc81d8
Merge from master
mntn-xyz 280c969
Add test for hard break
mntn-xyz 53c388e
Add more HTML tests
mntn-xyz 1f6bb3a
Unescape HTML escapes in HTML blocks, fix for hard break, more tests
mntn-xyz 443e1c5
Add unescaping of HTML entities
mntn-xyz 247c5c7
Fix HTML block in blockquote, organize HTML tests
mntn-xyz File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subroutines called from
RenderNode
generally do the final linebreak that splits Gemtext paragraphs withnoNewLine
. Not that it matters much; it's just a consistency thing (entering
and double AST passthrough was initially intended for that job in gomarkdown, but block elements in HTML and Gemtext are different, so it doesn't get much use for that).