Skip to content

escaping asterisks inside italic block #287

Open
@adam-p

Description

@adam-p

Reported in a Google Groups post.


Is it possible to escape asterisks within an italic (or bold) block?

What I type in:

*hello* 

\*hello\* 

*\*hello\** 

\**hello*\* 

*hello \* world* 

I expect something like:

<p><em>hello</em></p> 
<p>*hello*</p> 
<p><em>*hello*</em></p> 
<p>*<em>hello</em>*</p> 
<p><em>hello * world</em></p> 

What I get in from markdown-here:

<p><em>hello</em></p> 
<p>*hello*</p> 
<p><em>\</em>hello**</p> 
<p>*<em>hello</em>*</p> 
<p><em>hello \</em> world*</p> 

(style properties removed for readability.) The first two are (as expected) fine. The third thinks I want to italize the backslash. The fourth is the closest, but perhaps I want the asterisks italicized (it sounded fine before I actually read what I am saying ...). From the last it appears that the escaped-asterisk is not considered inside a bold/italic block.


Workaround: Instead of trying to escape the asterisks, use one of the HTML entities for asterisk, like: &ast;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions