镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Support contenteditable better with \u00a0 characters #52

Closed

Description

@OscarGodson

As you know from my ticket, contneditables will convert spaces to \u00a0. From: http://www.fileformat.info/info/unicode/char/A0/index.htm

It's decomposition is actually a \u0020, or, a space. It'd be nice if Marked checked for both of those characters since they mean almost the same thing. I can't imagine someone wanting to keep a no-break space but convert spaces.

Thoughts?

Activity

  1. chjj commented on May 20, 2012

    @chjj
    Member

    I guess we should check for \u2424 as well? Are there any other weird unicode characters?

    Probably fixed with this in block.lexer:

    src = src.replace(/\u00a0/g, ' ');
    src = src.replace(/\u2424/g, '\n');
  2. OscarGodson commented on May 21, 2012

    @OscarGodson
    Author

    Probably. I'd say whatever would be the expectation since I think almost everyone would be using this in some sort of automated fashion where special characters would make it in there depending on browser, platform, even language. This is for sure the best parser used to date and I've tried quite a few popular ones, so I respect your judgement on this stuff. :)

  3. ghost added a commit that references this issue on May 13, 2016
    c13a7aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions