Advertisement · 728 × 90

Posts by Jethro Djan

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

1 year ago 3370 1145 87 307

Brilliant! 🤣

1 year ago 0 0 0 0

More often than not, I find myself enamoured by beauty of mastery.

1 year ago 0 0 0 0
Post image

This is absolutely ridiculous 🤣🤦🏾‍♂️. What sort of magic incantation is this??

1 year ago 0 0 0 0

Hey, can I DM you a question?

1 year ago 1 0 1 0

This helps. Thanks!

1 year ago 1 0 0 0

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

1 year ago 0 0 0 0
Rust code about using markdown_ast crate

Rust code about using markdown_ast crate

Error: this macro call doesn’t expand to a pattern

1 year ago 0 0 1 0
Advertisement

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.

1 year ago 1 0 1 0

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.

1 year ago 0 0 1 0

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.

1 year ago 1 0 1 0

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

1 year ago 1 0 2 0

So so cool! 😍🥳

1 year ago 1 0 0 0
Video

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

1 year ago 286 17 23 0