Skip to content

Brackets are being read as a shortcode #6250

Closed

Description

@karmatosed

This is an interesting note, when you use [ brackets ] in something you aren't always signifying a shortcode. Gutenberg gets a little keen when it sees this. Is there anything we can do to ease this?

Activity

  1. added
    [Type] Enhancement
    on Apr 18, 2018
  2. karmatosed commented on Apr 18, 2018

    @karmatosed
    MemberAuthor

    Closing as see #3806 has this covered.

  3. ellatrix commented on Apr 18, 2018

    @ellatrix
    Member

    @karmatosed I don't think this is the same issue?

  4. ellatrix commented on Apr 18, 2018

    @ellatrix
    Member

    Reopening. I think the best thing to do here is get all registered short codes and match any of those instead of anything in between brackets.

  5. karmatosed commented on Apr 19, 2018

    @karmatosed
    MemberAuthor

    Ah thanks for clarification @iseulde

  6. added this to the milestone on Apr 27, 2018
  7. added
    [Type] Bug
    and removed
    [Type] Enhancement
    on Apr 27, 2018
  8. tofumatt commented on May 8, 2018

    @tofumatt
    Member

    Just to be clear, it seems the issue is that, for instance, text containing [bracket] that isn't already a Gutenberg block (no wp: comments around it), will show the classic editor and then when converted to a block change into a shortcode block even though no valid shortcode for that exists, right? I can reproduce that but I wasn't quite clear if that's what this issue is describing.

    If I type [brackets] into an empty new block, an existing block, etc. I don't see Gutenberg try to change it to a shortcode...

  9. ellatrix commented on May 14, 2018

    @ellatrix
    Member

    See also #5695. I think we might have fixed the worst part with #6329. What is currently broken here?

  10. mtias commented on Jun 22, 2018

    @mtias
    Member

    @karmatosed anything pending here?

  11. karmatosed commented on Jun 22, 2018

    @karmatosed
    MemberAuthor

    I can't replicate in latest version so lets close.

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

    [Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions