Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some options not setting correctly #35

Open
JHaller27 opened this issue Oct 26, 2018 · 1 comment
Open

Some options not setting correctly #35

JHaller27 opened this issue Oct 26, 2018 · 1 comment

Comments

@JHaller27
Copy link

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>
@evilaliv3
Copy link

I think this could be happening when sanitize is enabled.

Do you confirm that you are using it @JHaller27 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants