Skip to content

Commit

Permalink
fix misspelling of "thematic" causing render errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonklein committed Oct 8, 2024
1 parent a805e7d commit 4573a20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion native/comrak_nif/src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Encoder for NodeName {
Self::HtmlBlock => "html_block",
Self::Paragraph => "paragraph",
Self::Heading => "heading",
Self::ThematicBreak => "themantic_break",
Self::ThematicBreak => "thematic_break",
Self::FootnoteDefinition => "footnote_definition",
Self::Table => "table",
Self::TableRow => "table_row",
Expand Down
11 changes: 11 additions & 0 deletions test/format_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ defmodule MDEx.FormatTest do
)
end

test "thematic break" do
assert_format(
"""
---
# Heading
""",
"<hr />\n<h1>Heading</h1>\n"
)
end

test "block quote" do
assert_format(
"""
Expand Down

0 comments on commit 4573a20

Please sign in to comment.