Skip to content

Underscores in string interfering with bold text elsewhere in the string #28

@rboschjr

Description

@rboschjr

I'm using Marker to lay out a definition-list-type presentation, with entries like so:

**answer**: Clue text

And it's working fine for the most part, but the following case fails to render correctly:

**myrtle**: ___ Beach

(There's three underscores there for the blank, with a single space before and after.)

Instead of producing 'myrtle' in bold, the line renders as written, with the asterisks present in the output instead.

  • Markdown: **myrtle**: ___ Beach
  • Expected result: myrtle: ___ Beach
  • Observed result: **myrtle**: ___ Beach

I tried entering the string in a couple of online Markdown editors (to confirm that the string is valid), and they both rendered it correctly with 'myrtle' in bold and the underscores intact (as it does above).

I did a little experimenting and found that a single underscore works fine, but two or more causes the issue, and the blank causes trouble no matter where it appears in the string -- before or after the bold word, adjacent or not.

Let me know if you need any additional details -- thanks!

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