Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

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

Merged
Rokt33r merged 1 commit into
BoostIO:masterfrom
nagledb:fix-blockquote-in-html-export
Nov 6, 2018
Merged

Fixed "Save as HTML" to respect blockquotes.#2511
Rokt33r merged 1 commit into
BoostIO:masterfrom
nagledb:fix-blockquote-in-html-export

Conversation

@nagledb

@nagledb nagledb commented Oct 19, 2018

Copy link
Copy Markdown
Contributor

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 commented Oct 23, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Member

LGTM but I still need @Rokt33r to review this.

@Rokt33r

Rokt33r commented Nov 6, 2018

Copy link
Copy Markdown
Member

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants