HaxeFoundation / HaxeFoundation/haxe-markdown

Inline HTML doesn't always render correctly

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
65
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I've run into some unexpected behavior while parsing markdown documents with inline HTML.

Take this markdown for example:

```

# Test
test test test


```

When parsed, this is what I would expect:

```


Test


test test test



```

But that is not what results. This is the output from running the markdown through `Markdown.markdownToHTML`:
```


Test


test test test



```

As you can see, there are p tags surrounding the closing div. Now, this will render just fine in browsers, but it is not correct HTML. If there are no problems with it, I would suggest making the parse match the expected result I show. I might be able to help, but I would need some guidance on what to change.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.