Skip to content

Some options not setting correctly #35

@JHaller27

Description

@JHaller27

I have some options set with $showdownProvider.setOption('<property>', true);. Some of them work, some act as though the option is not being set. (Have not tested extensively, so these are only the options I'm using).

Broken

Option: setOption('underline', true);

Markdown

__text__

Expected
Underlined "text" (does not display in GitHub)

Actual
"text"


Option: setOption('simpleLineBreaks', true);

Markdown

text
text

Expected
"text
text"

Actual
"text text"

Working

(For sanity check purposes)

Option: setOption('tables', true);

Markdown

| Header1 | Header2 |
|:-------:|:-------:|
| itemA1  | itemA2  |
| itemB1  | itemB2  |

Result

Header1 Header2
itemA1 itemA2
itemB1 itemB2

Option: setOption('headerLevelStart', 2);

Markdown

# I'm a heading

Result (html)

<h2>I'm a heading</h2>

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