Skip to content

docs: Add note about zero width unicode characters (#2139) - #2605

Merged
styfle merged 1 commit into
markedjs:masterfrom
matijagaspar:master
Oct 11, 2022
Merged

docs: Add note about zero width unicode characters (#2139)#2605
styfle merged 1 commit into
markedjs:masterfrom
matijagaspar:master

Conversation

@matijagaspar

Copy link
Copy Markdown
Contributor

Description

What was attempted

Added clarification about ZERO WIDTH unicode characters interfering with parsing.

Contributor

  • no tests required for this PR.

Committer

In most cases, this should be a different person than the contributor.

@vercel

vercel Bot commented Oct 10, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
marked-website ✅ Ready (Inspect) Visit Preview Oct 11, 2022 at 5:55AM (UTC)

@UziTech UziTech left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! 💯

@UziTech UziTech added the category: docs Documentation changes label Oct 10, 2022
Comment thread docs/INDEX.md
```

**⚠️ Input: special ZERO WIDTH unicode characters (for example `\uFEFF`) might interfere with parsing. Some text editors add them at the start of the file (see: [#2139](https://github.com/markedjs/marked/issues/2139)).**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let’s add an example below (like we do for sanitizing)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Amended the commit

@styfle styfle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@styfle
styfle merged commit 530b9ae into markedjs:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First line is not parsed as markdown

3 participants