Skip to content

StateInline.prototype.scanDelims should recognize non-BMP punctuations & symbols #1071

@tats-u

Description

@tats-u

https://markdown-it.github.io/#md3=%7B%22source%22%3A%22a%2A%2Aa%E2%88%87%2A%2Aa%5Cn%5Cna%2A%2A%E2%88%87a%2A%2Aa%5Cn%5Cna%2A%2Aa%F0%9D%9C%B5%2A%2Aa%5Cn%5Cna%2A%2A%F0%9D%9C%B5a%2A%2Aa%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D

a**a∇**a

a**∇a**a

a**a𝜵**a

a**𝜵a**a

** in the last 2 paragraphs should not be converted to <strong>. (The first 2 are preserved as are)
𝜵 in them is in the Sm category but consumes 2 characters in JS string notation.

StateInline.prototype.scanDelims should use codePointAt and fromCodePoint, not only charCodeAt and fromCharCode, to recognize codepoints of characters like it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions