#microformats 2021-10-15

2021-10-15 UTC
aranjedeath, justHaunt1, Zegnat, hendursa1, [timothy_chambe], hendursaga, [Ed_Beck] and KartikPrabhu joined the channel
#
Jeremiah[d]
Are there any markdown extensions that can work with microformats? If not, I was planning on making goldmark extension https://github.com/yuin/goldmark.
#
Jeremiah[d]
My interest largely involves creating syntax for denoting things I want inside of h-cite, but this feels like it could be more generically useful.
#
Jeremiah[d]
Unless anyone has other advice on how they get data into microformats in an automated fashion.
#
Loqi
[yuin] goldmark: :trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
#
[fluffy]
There are markdown extensions which let you adorn things with classes but they tend to be very insular and not interoperable. You’re better off just doing <span class> yourself, unfortunately.
#
Jeremiah[d]
Yeah, it's looking like the span is the most direct approach. Even if I do make an extension for that library, I will need to fork Hugo to get the extension to play nice.
#
Jeremiah[d]
Am tempted but not sure if I'm that committed to having an automated way to insert microformats
#
Jeremiah[d]
Am tempted but not sure if I'm that committed to having an automated way to insert microformats
#
Jeremiah[d]
[edit] Yeah, it's looking like the span is the most direct approach. Even if I do make an extension for that library, I will need to fork Hugo to get the extension to play nice with site generation.
#
@akbarth3great
#programming #react #microformats #webdevelopment #frontend Creating Module Federation Microfrontends with create-mf-app http://dlvr.it/S9fXmR
(twitter.com/_/status/1449098259885019136)
#
[KevinMarks]
Hugo has a setting to pass through html in markdown
gRegor joined the channel
#
Jeremiah[d]
I wonder if it'll behave how I want it to.
#
Jeremiah[d]
You're talking about the shortcodes, yeah?
#
[KevinMarks]
No, raw html. <div class =h-entry >etc
btrem joined the channel
#
Jeremiah[d]
Oh cool I didn't realize you can do pass throughs like that. Gonna go spend some more time in the docs.
#
sknebel
Most markdown things do that
#
[KevinMarks]
It's in the spec that html should be passed through, but Hugo turned it off by default a few releases ago
#
Jeremiah[d]
Hmm. Wonder why they turned it off.
#
Jeremiah[d]
Looks like it was part of switching to goldmark as the parser.
#
[tantek]
"why they turned it off by default" <-- potential security risks, i.e. people being told "just copy paste this code into your post to get cool animations, or for this interactive infographic" and it actually embeds things to steal credentials, scripts to cryptomine etc.
#
Jeremiah[d]
Yeah, that makes a ton of sense.
#
[tantek]
in general this is why it's a BAD IDEA™ to allow or use "HTML pass through" in Markdown, a format that's supposed to "just" be stylistic enhancements of plaintext based on user-understandable plaintext punctuation
#
[tantek]
any such use greatly changes the security characteristics of such Markdown files far beyond reasonably well understood expectations
#
Jeremiah[d]
That is one of the reasons I was looking to see if anyone implemented a microformats extension to markdown. I use my blog for notes and have a lot of references to read and I was going to make a tool for myself that allows me to collate references I wrap in h-cite.
Seirdy joined the channel
#
Jeremiah[d]
[edit] That is one of the reasons I was looking to see if anyone implemented a microformats extension to markdown. I use my blog for notes and have a lot of notes on references to read and I was going to make a tool for myself that allows me to collate references I wrap in h-cite.
#
[tantek]
Jeremiah[d] I've been pursuing a close to the root fork of Markdown, and am definitely interested in looking into ways to express some of the more common/useful semantics from microformats: https://tantek.com/w/Markdown
#
Jeremiah[d]
@tantSo, I think the path I'm going to pursue
#
Jeremiah[d]
[tantek]: This is helpful. I'm adding this page to my project notes. The section on how to improve the look of Markdown is really helpful. I stubbed out some notes on what this syntax would look like last night and it would fall under the same criticism that you make of Markdown. So, I'm going to spend some more time making them clean. For the sake of having something usable to build out some other blog tools, I think I'm going to make a g
#
Jeremiah[d]
I have some other things to do tonight, but if I get to it tonight I'll spend some time thinking about this. My biggest concern is how many microformats can use nested properties, but maybe that's more a parser problem than a syntax problem.
#
Jeremiah[d]
also
#
Jeremiah[d]
writeup++
#
Loqi
writeup has 1 karma over the last year
Seirdy joined the channel