Skip to content
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

Fixed "Save as HTML" to respect blockquotes. #2511

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

nagledb
Copy link
Contributor

@nagledb nagledb commented Oct 19, 2018

When saving as HTML, the raw text was being HTML escaped prior to
running it through markdown. This was preventing blockquotes from
rendering because greater-than signs were escaped. The HTML escaping
seems unneeded since the markdown renderer already takes care of it,
and it also wasn't consistent with how markdown was being rendered
within the application.

Fixes #1922
Fixes #2514

@ZeroX-DG ZeroX-DG added the awaiting review ❇️ Pull request is awaiting a review. label Oct 20, 2018
@nagledb nagledb closed this Oct 23, 2018
@nagledb nagledb deleted the fix-blockquote-in-html-export branch October 23, 2018 20:38
@nagledb nagledb reopened this Oct 23, 2018
@nagledb nagledb restored the fix-blockquote-in-html-export branch October 23, 2018 20:41
When saving as HTML, the raw text was being HTML escaped prior to
running it through markdown. This was preventing blockquotes from
rendering because greater-than signs were escaped. The HTML escaping
seems unneeded since the markdown renderer already takes care of it,
and it also wasn't consistent with how markdown was being rendered
within the application.
@nagledb nagledb force-pushed the fix-blockquote-in-html-export branch from b316301 to 5144c0e Compare October 23, 2018 20:41
@nagledb
Copy link
Contributor Author

nagledb commented Oct 23, 2018

Rebased against current head (without any changes).

Tested to verify that it also fixes #2514

@ZeroX-DG ZeroX-DG added awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. and removed awaiting review ❇️ Pull request is awaiting a review. labels Oct 26, 2018
@ZeroX-DG
Copy link
Member

LGTM but I still need @Rokt33r to review this.

@Rokt33r
Copy link
Member

Rokt33r commented Nov 6, 2018

@nagledb

The HTML escaping seems unneeded since the markdown renderer already takes care of it,

I don't think it is true. Markdownit doesn't sanitize anything. But, I'm okay with discarding this because most of users open the exported html on the latest browser like Chrome. So, it should be fine for now.

@Rokt33r Rokt33r added next release (v0.11.12) and removed awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. labels Nov 6, 2018
@Rokt33r Rokt33r merged commit bd56055 into BoostIO:master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants