this post was submitted on 19 Apr 2024
258 points (98.1% liked)

Linux

48287 readers
657 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Whether you're really passionate about RPC, MQTT, Matrix or wayland, tell us more about the protocols or open standards you have strong opinions on!

you are viewing a single comment's thread
view the rest of the comments
[–] dessalines@lemmy.ml 95 points 7 months ago* (last edited 7 months ago) (8 children)

Markdown. Its only in tech-spaces that its preferred, but it should be used everywhere. You can even write full books and academic papers in markdown (maybe with only a few extensions like latex / mathjax).

Instead, in a lot of fields, people are passing around variants of microsoft word documents with weird formatting and no standardization around headings, quotes, and comments.

[–] xigoi@lemmy.sdf.org 51 points 7 months ago (2 children)

Markdown is terrible as a standard because every parser works differently and when you try to standardize it (CommonMark, etc.), you find out that there are a bajillion edge cases, leading to an extremely bloated specification.

[–] MajorHavoc@programming.dev 25 points 7 months ago

Agreed in principle, but in practice, I find it's rarely a problem.

While editing, we pick an export tool for all editors and stick to it.

Once the document is stable, we export it to HTML or PDF and it'll be stable forever.

[–] dessalines@lemmy.ml 11 points 7 months ago (2 children)

Most ppl have settled on Commonmark luckily, including us.

[–] technom@programming.dev 15 points 7 months ago (1 children)

Commonmark leaves some stuff like tables unspecified. That creates the need for another layer like GFM or mistletoe. Standardization is not a strong point for markdown.

[–] dessalines@lemmy.ml 6 points 7 months ago (1 children)

I believe commonmark tries to specify a minimum baseline spec, and doesn't try to to expand beyond that. It can be frustrating bc we'd like to see tables, superscripts, spoilers, and other things standardized, but I can see why they'd want to keep things minimal.

[–] technom@programming.dev 7 points 7 months ago

Asciidoc is a good example of why everything should be standardized. While markdown has multiple implementations, any document is tied to just one implementation. Asciidoc has just one implementation. But when the standard is ready, you should be able to switch implementations seamlessly.

[–] xigoi@lemmy.sdf.org 4 points 7 months ago* (last edited 7 months ago) (1 children)

Have you read the CommonMark specification? It’s very complex for a language that’s supposed to be lightweight.

[–] frezik@midwest.social 2 points 7 months ago (1 children)

What's the alternative? We either have everything specified well, or we'll have a million slightly incompatible implementations. I'll take the big specification. At least it's not HTML5.

[–] xigoi@lemmy.sdf.org 1 points 7 months ago (1 children)

An alternative would be a language with a simpler syntax. Something like XML, but less verbose.

[–] frezik@midwest.social 2 points 7 months ago (1 children)

And then we'll be back to a hundred slightly incompatible versions. You need detailed specifications to avoid that. Why not stick to markdown?

[–] xigoi@lemmy.sdf.org 1 points 7 months ago (1 children)

Not if the language is standardized from the start.

[–] frezik@midwest.social 1 points 7 months ago

Sure it will. It will be a detailed language from the start.

[–] southsamurai@sh.itjust.works 20 points 7 months ago (3 children)

Man, I've written three novels plus assorted shorter form stories in markdown.

There's a learning curve, but once you get going, it's so fluid. The problem is that when it comes time to format for release, you have to convert to something else, and not every word processor can handle markdown. It's extra work, but worth it, imo.

[–] halm@leminal.space 8 points 7 months ago (1 children)

Just set up pandoc and Bob's your uncle. It'll convert markdown to anything. You'll never have to open another word processor.

[–] southsamurai@sh.itjust.works 7 points 7 months ago* (last edited 7 months ago) (1 children)

Nice! Thanks for the tip!

Edit: holy shit, how have I never run across that before? That's a brilliant program right there.

[–] halm@leminal.space 4 points 7 months ago

Pandoc + [your markdown editor of choice] is magic. Some editors even come with Pandoc as a dependency so you can export to more or less anything from the GUI. I think GhostWriter and Zettlr at least (I honestly can't be sure, I've changed editors so often and now I just have some Pandoc conversion scripts in my file manager menu).

[–] dessalines@lemmy.ml 5 points 7 months ago (1 children)

For sure, I bet full fledged editors like word don't even let you import it.

[–] southsamurai@sh.itjust.works 2 points 7 months ago

Not correctly, no. Librewriter does a bit better, but still misses some bits

[–] Pacmanlives@lemmy.world 1 points 7 months ago (1 children)

Silly question why can’t you convert markdown to PDF and pass that to publishers?

[–] southsamurai@sh.itjust.works 4 points 7 months ago

Because it isn't doc is docx.

Publishers are pissy about such things. Even self publishing (which is what I do now), the various outlets still have limits to what they will use. Amazon accepts something like three file formats, including their own, and pdf isn't on the list.

I could just do pdf for directly giving them away to people, but even then, epub is usually a better pick in terms of readability since that's the standard for actual books since ereaders tend to display it better than pdfs. Most people reading books via files would be using something that can give a better experience with epub vs pdf.

[–] fenndev@leminal.space 11 points 7 months ago

I think Obsidian and Logseq are helping to change this.

[–] warmaster@lemmy.world 7 points 7 months ago

Depends on the type of book. Since you need HTML for all non default styles. Therefore, it raises the bar... you need a bit of web dev knowledge which removes the biggest benefit of markdown: simplicity / ease of use.

[–] cyclohexane@lemmy.ml 7 points 7 months ago (1 children)

Markdown is awesome, I agree! I did not realize you could extend markdown with anything other than html. The html extension is quite nice to do anything that markdown doesn't support natively, but I wish there was an easier way to extend markdown. Maybe the ones you listed are what I need.

[–] dessalines@lemmy.ml 1 points 7 months ago

Hedgedoc / hackmd support a good amount of extensions out of the box. I think typora and obsidias do also (but not open source).

[–] halm@leminal.space 6 points 7 months ago (1 children)

I frigging love markdown for everything!

[–] dessalines@lemmy.ml 3 points 7 months ago

My main wishlist for markdown, is a better live collaborative markdown editor. Hedgedoc works, but it's showing it's age, and they don't seem to be getting close to releasing v2.

Etherpad also has a markdown extension, but it doesn't import / export that well.

[–] boredsquirrel@slrpnk.net 4 points 7 months ago (2 children)

It is too basic. I guess something more full-fledged like... typst?

[–] veaviticus@beehaw.org 2 points 7 months ago

ReST (restructured text) is a good middle ground. I just wish it had more support outside of the python community. It could use some new/better tooling than Sphinx

[–] technom@programming.dev 2 points 7 months ago (1 children)

Typst is a typesetting format - an alternative to LaTeX. Asciidoc is more of a competitor to markdown.

[–] boredsquirrel@slrpnk.net 1 points 7 months ago

Learning that currently.

[–] misnad@lemmy.ml 4 points 7 months ago