13
submitted 1 year ago by Slow@lemmy.today to c/asklemmy@lemmy.world

I tried opening the .md file in different text reading applications. However, the text display varied from one application to another.

Some apps display the hyphen normally, while others display a circle instead of the hyphen. Selecting text and navigating by title does not work everywhere.

But what's more outrageous is that paragraphs and indents don't work. The text just randomly blurs in different directions.

Why is there such chaos with displaying text in this format?

top 2 comments
sorted by: hot top controversial new old
[-] dustyData@lemmy.world 10 points 1 year ago* (last edited 1 year ago)

Markdown is supposed to be readable without rich text formatting.

There's no one way of displaying markdown as long as the semantic structure is respected. Dashes, hyphens, circles or dots. Don't matter as long as it's an unordered bulleted list and the correct hierarchy and sequence is followed for each block of text. Similarly the indentation of all those things is irrelevant and to the taste of the reader's implementation.

You don't indent text in markdown to signal formatting. You indent text in markdown to signal a code block. To signal other semantic structures you use other plaintext markers.

Read the original definition of the format to understand which are they. The purpose of markdown is to write the same general and commonly used mark-up elements used in HTML (paragraph, links, references, lists, tables and emphasis, amongst many others) with plaintext, in a less verbose and more human friendly way. And just like HTML, the formatting is supposed to be separate. With CSS or such other techniques. As a result, the formatting is free to change while the underlying structure and meaning of text stays the same.

[-] b3an@lemmy.world 4 points 1 year ago

I would guess it is how each developer choose to implement it. Markdown is really just simple text. Usually apps are enriching it based on that, but each can implement it differently. Obsidian.md is how I like my Markdown to look. But it’s not a Lemmy app. I think they use front-matter or something

this post was submitted on 13 Oct 2023
13 points (93.3% liked)

Ask Lemmy

26890 readers
1831 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS