Make default element generic
This commit is contained in:
parent
7512aeafbf
commit
5d28a2e707
6 changed files with 92 additions and 53 deletions
|
|
@ -16,8 +16,7 @@ pub async fn node(Path(id): Path<String>) -> Response<Body> {
|
|||
context.insert("connections", &node.connections.clone());
|
||||
context.insert("incoming", &graph.incoming.get(&id));
|
||||
|
||||
let escaped_text = tera::escape_html(&node.text);
|
||||
let out_text = parser::read(&escaped_text);
|
||||
let out_text = parser::read::<Paragraph>(&node.text);
|
||||
context.insert("text", &out_text);
|
||||
|
||||
let not_found = node.clone() == empty_node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue