ADVENTURER: Dragon! We are here for your gold! Prepare to die!
DRAGON: My gold?
ADVENTURER: Yes! We climbed this great mountain, swam it's flooded caverns and-
DRAGON: Fair enough
ADVENTURER: Wait, what?
DRAGON: It's yours
ADVENTURER:
DRAGON: How are you carrying it out of here?
ADVENTURER: Um... /1
Posts by Jethro Djan
Brilliant! 🤣
More often than not, I find myself enamoured by beauty of mastery.
This is absolutely ridiculous 🤣🤦🏾♂️. What sort of magic incantation is this??
Hey, can I DM you a question?
This helps. Thanks!
Helped a lot, thanks!
I see that post_content is wrapped in a Result because it’s being called using a server function. Followed your blueprint but mine is entirely a CSR app (almost worked). Currently having issues capturing my HTML string in a closure. Can capture a &str but not a String
Rust code about using markdown_ast crate
Error: this macro call doesn’t expand to a pattern
I get what you are saying. Tried that too. I can’t match the various Blocks in the vec using iter().map(…). I get an error which I interpret to mean I can’t match against the various Blocks to extract the information I want. Will try another way if this one seems not to be the right approach.
So the crate has the Block struct. So if you want a heading of level 1, I was thinking you could query it like this Block::Heading(HeadingLevel::H1 … to get the Inlines::plaintext. You get what I’m trynna ask? In that way, I could enclose the resulting Inline text in a Leptos view.
That was my initial approach. Couldn’t get it to work (maybe skill issue). I used pulldown_cmark crate. So you parse the whole markdown into html string? Then I enclose it in a Leptos View? How do I pass it into the </App> component? Couldn’t figure that part out without a multitude of errors.
Hi Rust folks. I am trying to build a minimal markdown parser for blogging purposes into an existing Leptos app. My approach is to use the markdown_ast crate but I can’t figure out how to expose the text in the headings and paragraphs, so that I can enclose it in a Leptos view. Any ideas? #RustLang
So so cool! 😍🥳
This was my personal project of the year and I'm happy to repost it here!
With @donatelleliens.bsky.social, we illustrated and developed "Oggy!" 🦕 a #webgl children's book.
↳ oggy-story.com/en