#wordpress 2019-02-25

2019-02-25 UTC
[schmarty], k23cc, [deeden], [tantek], [eddie], jeremych_ and [pfefferle] joined the channel
#
[pfefferle]
someone extracted the MD module from jetpack https://wordpress.org/plugins/jetpack-markdown/
[grantcodes] joined the channel
#
[grantcodes]
The main reason there is no micropub markdown editor is that the micropub spec doesn't specify any way to store or return content in another format
#
[grantcodes]
You could modify your own micropub endpoint to only ever to use markdown formatted plain text and use a plain text micropub client - of which there are many.
#
sknebel
I could have sworn I saw a markdown mode somewhere...
#
sknebel
oh, maybe the micro.blog app?
#
sknebel
but yes, [grantcodes] is right, theres no adopted way of indicating "I understand markdown", only proposals
#
sknebel
(although I know some people have endpoints that inspect the content and use that to detect markdown)
#
[pfefferle]
[grantcodes] ah I See!
#
[grantcodes]
Yeah I run markdown parsing on my endpoint, but then everything is always stored and edited as html
[jgmac1106], jgmac1106, [tantek], jeremych_, [kevinmarks], [Rose], [schmarty] and [pfefferle] joined the channel
#
GWG
[pfefferle]: Helllo here too
[kevinmarks] joined the channel
#
[kevinmarks]
going back from html to markdown can be lossy (in principle markdown can contain arbitrary html as html, but the translators aren't perfect)
#
aaronpk
the other problem is there isn't just one "markdown" so in practice it's not guaranteed to work everywhere anyway
[Rose] joined the channel
#
[Rose]
That is an issue. But if the markdown I provide can be stored then that should be returned - and gives the user what they're expecting too.
[jgmac1106] joined the channel
#
petermolnar
personal recommendation: pandoc => multimarkdown
#
[jgmac1106]
Just send it to a .txt file and let people know it's there? Never understood draw of markdown... Just ads one more thing to process
#
[jgmac1106]
But I am not an iOS user, seems to be more popular there...
#
petermolnar
but it is indeed a problem
#
petermolnar
[jgmac1106]: plain text is awesome, as long as you want a person to read it; if for any reason, you dare trying to process one with an algorithm, you're in a bad place
#
[jgmac1106]
Ohh yes... I thought Rose just wanted a copy of the Markdown so where for readers...
#
petermolnar
[kevinmarks]: "An unexpected error occured when trying to contact babelmark-proxy. Reason: timeout, Error status: 0 "
#
[jgmac1106]
Then she could just use WP markdown plugins to exist that will go to html... But if people had desire to see the markdown
#
petermolnar
you have 2 options: capture calls to post_content and use post_content_filtered, store markdown there, convert to html whenever changes, etc
#
aaronpk
yes my point is if *you* know you're writing markdown, then all the micropub clients can treat it as plain text and your backend can render it on the server
#
petermolnar
use post_content as html, convert back to md on edit, then back to html on save
#
petermolnar
both are horrible :D
#
sknebel
petermolnar: why is the former bad?
#
petermolnar
you're altering an inner mechanism of wordpress. been there. it leads to way too many hacks.
[manton], [Vincent], jgmac1106, tbbrown, [schmarty], [tantek], [eddie], jackjamieson, [davidmead], [chrisaldrich], [kevinmarks] and [grantcodes] joined the channel
#
GWG
Hi, jackjamieson
#
jackjamieson
How was the rest of IWC Austin?
#
GWG
jackjamieson, I did a lot of Parse This work
#
jackjamieson
I saw that, I'll update Yarns with the changes when I get time. Probably can do a bit of coding this week - been busy with writing recently
#
GWG
jackjamieson, I have more coming, but I standardized a lot
#
GWG
I didn't realize until I talked to aaronpk that I was following jf2, not the stricter limits mentioned in Microsub
[gRegorLove] joined the channel
#
jackjamieson
Ah, actually I didn't realize there was a difference. I followed the microsub spec when I was writing my parsing, but hadn't compared to jf2 more generally
#
GWG
jackjamieson, neither did I
#
GWG
But some properties are always arrays in Microsub.
#
GWG
JF2 says that single properties don't have to be arrays
#
jackjamieson
Ah, I'm looking now and I see what you mean
#
aaronpk
the goal with microsub is to have fewer different ways of doing things, so that it's easier to write apps
Kaja joined the channel
#
GWG
aaronpk, I need to edit the wiki to explain that.
#
GWG
I doubt I am the only one who missed the distinction
#
aaronpk
I will add some text to the "design goals" section which talks about this
#
jackjamieson
aaronpk: I like that. Having photos etc as arrays makes it clear that clients should always be able to handle multiple. Makes a lot of sense, but I remember having some confusion previously when I was working on the pre-microsub version of Yarns
#
GWG
aaronpk, specifically that it uses a stricter version of jf2
#
GWG
That was what I wanted to add
#
aaronpk
feel free to clarify
[schmarty] joined the channel
#
GWG
That's perfect
Zegnat, sknebel, [cleverdevil], [manton], [Collin_Kunisch], [tantek], [jgmac1106], [keithjgrant], [grantcodes], [eddie], [aaronpk] and jackjamieson joined the channel
#
GWG
jackjamieson, have you thought about the notifications channel?