htmlarkdown icon indicating copy to clipboard operation
htmlarkdown copied to clipboard

Option to use underscore bold and italic

Open EvitanRelta opened this issue 1 year ago • 0 comments

Underscore bold and italic are in the form:

__bold__, _italic_

The reason both bold and italics are currently asterisks * only, is cuz of this edge case:

PREFIX__bold__, PREFIX_italic_

PREFIX**bold**, PREFIX*italic*

which renders as:

PREFIX__bold__, PREFIX_italic_

PREFIXbold, PREFIXitalic


The question is (or i guess "are"):

  • How do we detect if a bold/italic is prefixed (without spaces inbetween)?
  • What should HTMLarkdown do if its set to use underscore, and those edge cases happen?
    Should it:
    • Use asterisks?
    • or use HTML-syntax (ie. <b>, <i>)

EvitanRelta avatar Dec 27 '22 05:12 EvitanRelta