-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes: #418 * added 1.12.3 to GHA * better doc?
- Loading branch information
1 parent
2b84849
commit c385a0f
Showing
10 changed files
with
180 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
defmodule Test.Acceptance.Html.InnerHtmlTest do | ||
use Support.AcceptanceTestCase | ||
|
||
describe "output with the inner_html option" do | ||
test "one para" do | ||
markdown = "aaa" | ||
html = "aaa\n" | ||
messages = [] | ||
|
||
assert as_html(markdown, inner_html: true) == {:ok, html, messages} | ||
end | ||
|
||
test "two paras" do | ||
markdown = "aaa\n\nbbb\n" | ||
html = "aaa\nbbb\n" | ||
messages = [] | ||
|
||
assert as_html(markdown, inner_html: true) == {:ok, html, messages} | ||
end | ||
|
||
test "a list and a para" do | ||
markdown = "1. item\n\npara" | ||
html = "<ol>\n <li>\nitem </li>\n</ol>\npara\n" | ||
messages = [] | ||
|
||
assert as_html(markdown, inner_html: true) == {:ok, html, messages} | ||
end | ||
|
||
test "complex content of the para" do | ||
markdown = "a **b** `c`" | ||
html = "a \n<strong>b</strong> \n<code class=\"inline\">c</code>" | ||
messages = [] | ||
|
||
assert as_html(markdown, inner_html: true) == {:ok, html, messages} | ||
end | ||
end | ||
end |