Skip to content

Commit

Permalink
fix(Pandoc decoding): Also check for node URL when decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Aug 31, 2021
1 parent 29808ab commit 8873697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/src/methods/decode/pandoc.rs
Expand Up @@ -627,7 +627,9 @@ fn try_code_expression(inline: &InlineContent) -> Option<InlineContent> {
Some(title) => title.clone(),
None => "".to_string(),
};
if title == "CodeExpression" {
if title == "CodeExpression"
|| link.target.starts_with("https://hub.stenci.la/api/nodes")
{
if let InlineContent::CodeExpression(expr) = &link.content[0] {
return Some(InlineContent::CodeExpression(expr.clone()));
}
Expand Down

0 comments on commit 8873697

Please sign in to comment.