Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
@reiver ⊼ (Charles) :batman:
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social  ·  activity timestamp last month

How many Fediverse software use Markdown as its default text format — rather than HTML?

I think both PeerTube and Lemmy are Markdown native — rather than HTML.

Anything else?

#FediDev #FediDevs #Fediverse #Markdown

  • Copy link
  • Flag this post
  • Block
ivan
ivan
@ivan replied  ·  activity timestamp 3 days ago

@reiver@mastodon.social ​bonfire does

  • Copy link
  • Flag this comment
  • Block
julian
julian
@julian@activitypub.space replied  ·  activity timestamp last month

Re: How many Fediverse software use Markdown as its default text format — rather than HTML?

@reiver@mastodon.social add in NodeBB as well. Markdown first, and probably HTML too, although it will probably be sanitized to death on the way out.

  • Copy link
  • Flag this comment
  • Block
Matt Baer
Matt Baer
@matt@writing.exchange replied  ·  activity timestamp last month

@reiver #WriteFreely uses Markdown by default too, but of course sends out HTML to the fediverse

  • Copy link
  • Flag this comment
  • Block
silverpill
silverpill
@silverpill@mitra.social replied  ·  activity timestamp last month

@reiver Markdown or its subset is supported by almost every platform except Mastodon.
But PeerTube is the only software I know that puts markdown in content instead of HTML.

  • Copy link
  • Flag this comment
  • Block
Helge
Helge
@helge@mymath.rocks replied  ·  activity timestamp last month

Speaking of handling markdown. I created funfedi.dev Media Types a while ago (and just added it to the navigation). I lost interest when I saw that nobody properly handled the mediaType attribute of a note. Not that I know what I expected.

Can you explain what goes on in mitra? When mediaType is text/markdown. It changes __bold__ to <p>__bold__</p>, otherwise no paragraph tags. I'm pretty sure, I was once told to use __ for bold and * for emphasize. So my markdown should be good.

Full example ... input activity -> mitra api response

Final note: I am not sure what I would want a proper data format to do. I find the solution of W3C ActivityPub (not W3C ActivityStreams) proposes of putting HTML in content and adding source with the original, from which the HTML was generated ok. Of course, this leaves the existence of the summary and name field superfluous.

Media Types - Interoperability Data for the Fediverse

Media Types

  • Copy link
  • Flag this comment
  • Block
silverpill
silverpill
@silverpill@mitra.social replied  ·  activity timestamp last month

@helge @reiver

>Can you explain what goes on in mitra?

When mediaType is text/markdown, the entire content is wrapped in a <p> tag. This was done for compatibility with PeerTube. I think <p> was needed to create a space between the title (name) and the content, since title is prepended to content in Mitra (also a compatibility hack -- for Mastodon API clients).

  • Copy link
  • Flag this comment
  • Block
julian
julian
@julian@activitypub.space replied  ·  activity timestamp last month

Re: How many Fediverse software use Markdown as its default text format — rather than HTML?

I think the wrapping in <p> is just plain good practice because otherwise rendered content could be injected somewhere resulting in invalid HTML.

Not that browsers ever reject bad HTML anyway heh

  • Copy link
  • Flag this comment
  • Block
Helge
Helge
@helge@mymath.rocks replied  ·  activity timestamp last month

I think we are very deep in "the system is held together with spit and prayers, because the duck tape ran out" - territory in the usage of the <p> tag here.

How the markdown is rendered would be the duck tape.

  • Copy link
  • Flag this comment
  • Block
klu9
klu9
@klu9@ohai.social replied  ·  activity timestamp last month

@reiver

Mastodon Glitch Edition
https://glitch-soc.github.io/docs

Introduction | Mastodon Glitch Edition

  • Copy link
  • Flag this comment
  • Block
Aslak Raanes
Aslak Raanes
@aslakr@mastodon.social replied  ·  activity timestamp last month

@reiver Do they support inlining html in markdown as designed https://daringfireball.net/projects/markdown/syntax#html ?

  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp last month

@aslakr

That is a good question — but, I'm not sure.

  • Copy link
  • Flag this comment
  • Block
Jared White (ResistanceNet ✊)
Jared White (ResistanceNet ✊)
@jaredwhite@indieweb.social replied  ·  activity timestamp last month

@reiver Also PieFed I believe, as a Lemmy-inspired and somewhat compatible software

  • Copy link
  • Flag this comment
  • Block
Johannes Oschlies
Johannes Oschlies
@johannes@forte.joschlies.nohost.me replied  ·  activity timestamp last month

# Hubzilla and # streams both have it. # forte as well.

  • Copy link
  • Flag this comment
  • Block
Rimu
Rimu
@rimu@piefed.social replied  ·  activity timestamp last month

PieFed too.

  • Copy link
  • Flag this comment
  • Block
Adële 🌹
Adële 🌹
@adele@social.pollux.casa replied  ·  activity timestamp last month

@reiver #gotosocial posts are also in #markdown

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct