Skip to content

Commit

Permalink
fix: do not use markdown dep
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBorai committed Dec 22, 2024
1 parent 85746ba commit 7894693
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 54 deletions.
16 changes: 0 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ leptos = { version = "0.6", features = ["csr"] }
leptos_meta = { version = "0.6", features = ["csr"] }
leptos_router = { version = "0.6", features = ["csr"] }
link-preview = "0.1.1"
markdown = "=1.0.0-alpha.21"
pulldown-cmark = "0.12.2"
reqwest = "0.12.9"
serde = "1.0"
Expand Down
1 change: 0 additions & 1 deletion crates/www/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ anyhow = { workspace = true }
leptos = { workspace = true, features = ["csr"] }
leptos_meta = { workspace = true, features = ["csr"] }
leptos_router = { workspace = true, features = ["csr"] }
markdown = { workspace = true }
pulldown-cmark = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true }
Expand Down
70 changes: 34 additions & 36 deletions crates/www/src/routes/notes/slug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,23 @@ fn parse_md_into_html(md: &str) -> Markdown {
Tag::BlockQuote(_) => {
text.push(r#"<blockquote class="bg-yellow-100 p-2">"#.to_string());
}
_ => {}
// Tag::HtmlBlock => todo!(),
// Tag::List(_) => todo!(),
// Tag::Item => todo!(),
// Tag::FootnoteDefinition(cow_str) => todo!(),
// Tag::DefinitionList => todo!(),
// Tag::DefinitionListTitle => todo!(),
// Tag::DefinitionListDefinition => todo!(),
// Tag::Table(vec) => todo!(),
// Tag::TableHead => todo!(),
// Tag::TableRow => todo!(),
// Tag::TableCell => todo!(),
// Tag::Emphasis => todo!(),
// Tag::Strong => todo!(),
// Tag::Strikethrough => todo!(),
// Tag::Link { link_type, dest_url, title, id } => todo!(),
// Tag::Image { link_type, dest_url, title, id } => todo!(),
// Tag::MetadataBlock(metadata_block_kind) => todo!(),
_ => {} // Tag::HtmlBlock => todo!(),
// Tag::List(_) => todo!(),
// Tag::Item => todo!(),
// Tag::FootnoteDefinition(cow_str) => todo!(),
// Tag::DefinitionList => todo!(),
// Tag::DefinitionListTitle => todo!(),
// Tag::DefinitionListDefinition => todo!(),
// Tag::Table(vec) => todo!(),
// Tag::TableHead => todo!(),
// Tag::TableRow => todo!(),
// Tag::TableCell => todo!(),
// Tag::Emphasis => todo!(),
// Tag::Strong => todo!(),
// Tag::Strikethrough => todo!(),
// Tag::Link { link_type, dest_url, title, id } => todo!(),
// Tag::Image { link_type, dest_url, title, id } => todo!(),
// Tag::MetadataBlock(metadata_block_kind) => todo!(),
}
}
Event::End(tag_end) => {
Expand All @@ -206,24 +205,23 @@ fn parse_md_into_html(md: &str) -> Markdown {
pulldown_cmark::TagEnd::BlockQuote(_) => {
text.push("</blockquote>".to_string());
}
_ => {}
// pulldown_cmark::TagEnd::HtmlBlock => todo!(),
// pulldown_cmark::TagEnd::List(_) => todo!(),
// pulldown_cmark::TagEnd::Item => todo!(),
// pulldown_cmark::TagEnd::FootnoteDefinition => todo!(),
// pulldown_cmark::TagEnd::DefinitionList => todo!(),
// pulldown_cmark::TagEnd::DefinitionListTitle => todo!(),
// pulldown_cmark::TagEnd::DefinitionListDefinition => todo!(),
// pulldown_cmark::TagEnd::Table => todo!(),
// pulldown_cmark::TagEnd::TableHead => todo!(),
// pulldown_cmark::TagEnd::TableRow => todo!(),
// pulldown_cmark::TagEnd::TableCell => todo!(),
// pulldown_cmark::TagEnd::Emphasis => todo!(),
// pulldown_cmark::TagEnd::Strong => todo!(),
// pulldown_cmark::TagEnd::Strikethrough => todo!(),
// pulldown_cmark::TagEnd::Link => todo!(),
// pulldown_cmark::TagEnd::Image => todo!(),
// pulldown_cmark::TagEnd::MetadataBlock(metadata_block_kind) => todo!(),
_ => {} // pulldown_cmark::TagEnd::HtmlBlock => todo!(),
// pulldown_cmark::TagEnd::List(_) => todo!(),
// pulldown_cmark::TagEnd::Item => todo!(),
// pulldown_cmark::TagEnd::FootnoteDefinition => todo!(),
// pulldown_cmark::TagEnd::DefinitionList => todo!(),
// pulldown_cmark::TagEnd::DefinitionListTitle => todo!(),
// pulldown_cmark::TagEnd::DefinitionListDefinition => todo!(),
// pulldown_cmark::TagEnd::Table => todo!(),
// pulldown_cmark::TagEnd::TableHead => todo!(),
// pulldown_cmark::TagEnd::TableRow => todo!(),
// pulldown_cmark::TagEnd::TableCell => todo!(),
// pulldown_cmark::TagEnd::Emphasis => todo!(),
// pulldown_cmark::TagEnd::Strong => todo!(),
// pulldown_cmark::TagEnd::Strikethrough => todo!(),
// pulldown_cmark::TagEnd::Link => todo!(),
// pulldown_cmark::TagEnd::Image => todo!(),
// pulldown_cmark::TagEnd::MetadataBlock(metadata_block_kind) => todo!(),
}

text.push(state.clone());
Expand Down

0 comments on commit 7894693

Please sign in to comment.