Skip to content

Conversation

@ehrencrona
Copy link
Contributor

Fixes #29 (comment) :

<i data-icon="&#xE04E;">icon</i> was turned into <i data-icon="">icon</i>

I introduced a new function to explain what node.raw || node.data was doing; I hadn't understood it.

return fill(splitTextToDocs(getUnencodedText(node)));
} else {
return node.data;
return getUnencodedText(node);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the actual bug

* HTML attributes that we may safely reformat (trim whitespace, add or remove newlines)
*/
export const formattableAttributes = [
export const formattableAttributes: string[] = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is unrelated but fixes warning

@dummdidumm dummdidumm merged commit 869e35e into sveltejs:master Oct 9, 2020
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.

HTML entities not preserved

2 participants