Skip to content

Commit

Permalink
Use plain instead of text
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Drapper <[email protected]>
  • Loading branch information
joeldrapper authored Mar 16, 2023
1 parent df78a9a commit ee1e276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def visit(node)
whitespace
visit_children(node)
in :text
text(node.string_content)
plain(node.string_content)
in :header
case node.header_level
in 1 then h1 { visit_children(node) }
Expand Down Expand Up @@ -68,7 +68,7 @@ def visit(node)
li { visit_children(node) }
in :code
inline_code do |**attributes|
code(**attributes) { text(node.string_content) }
code(**attributes) { plain(node.string_content) }
end
in :code_block
code_block(node.string_content, node.fence_info) do |**attributes|
Expand Down

0 comments on commit ee1e276

Please sign in to comment.