Skip to content

Commit

Permalink
document raw node a little more.
Browse files Browse the repository at this point in the history
Remove redundant "plain" output mode; to be added (and tested) if
needed.
  • Loading branch information
kivikakk committed Dec 17, 2024
1 parent 04eedf6 commit 6f5ca7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,6 @@ where
| NodeValue::HtmlInline(ref literal) => {
self.escape(literal.as_bytes())?;
}
NodeValue::Raw(ref literal) => {
self.output.write_all(literal.as_bytes())?;
}
NodeValue::LineBreak | NodeValue::SoftBreak => {
self.output.write_all(b" ")?;
}
Expand Down
3 changes: 2 additions & 1 deletion src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ pub enum NodeValue {
/// **Inline**. [Raw HTML](https://github.github.com/gfm/#raw-html) contained inline.
HtmlInline(String),

/// **Inline**. A Raw text.
/// **Block/Inline**. A Raw output node. This will be inserted verbatim into CommonMark and
/// HTML output. It can only be created programmatically, and is never parsed from input.
Raw(String),

/// **Inline**. [Emphasized](https://github.github.com/gfm/#emphasis-and-strong-emphasis)
Expand Down

0 comments on commit 6f5ca7d

Please sign in to comment.