diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-22 20:12:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-22 20:12:37 +0100 |
| commit | 5992f11b4c33d82fa245205980094accb57a8c76 (patch) | |
| tree | b0043ba4b4cabab2fa8f63ec80f37c9d247e134a /library/src/lib.rs | |
| parent | b476de87b7cea1405bf3c051ff8e0ac7c473dbae (diff) | |
Reorganize content type
Diffstat (limited to 'library/src/lib.rs')
| -rw-r--r-- | library/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs index ca10837f..41c841f2 100644 --- a/library/src/lib.rs +++ b/library/src/lib.rs @@ -161,7 +161,7 @@ pub fn items() -> LangItems { linebreak: |justify| text::LinebreakNode { justify }.pack(), text: |text| text::TextNode(text).pack(), text_id: NodeId::of::<text::TextNode>(), - text_str: |content| Some(&content.downcast::<text::TextNode>()?.0), + text_str: |content| Some(&content.to::<text::TextNode>()?.0), smart_quote: |double| text::SmartQuoteNode { double }.pack(), parbreak: || text::ParbreakNode.pack(), strong: |body| text::StrongNode(body).pack(), |
