TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Markdown is meant to be shown (2021)

204 pointsby SoKamil9 months ago

37 comments

voidhorse9 months ago
I think the bigger problem is that apps that don&#x27;t need&#x2F;shouldn&#x27;t use markdown reach for it as a default and build upon it when they would have been served better investing in richer markup.<p>Take ulysses (mentioned in the article) for example. It has grown into a full-fledged writing and word processing application, but its being based on markdown originally has only hampered that. They&#x27;ve had to implement all of these clunky extensions and features in terms of markdown, and as the post states, try to hide the fact that it&#x27;s all markdown to make it feel more like a classic word processor. At this point it just makes the whole experience clunky. People that just want to write markdown deal with weird extensions and frustrating syntax hiding, people that don&#x27;t need to learn some minimal markdown just to use a word processor...<p>It&#x27;s 2024. I hope companies start to realize that markdown is a <i>fantastic</i> solution for certain cases but it is not <i>the only</i> solution. Some applications really are better served by more complex, but much more expressive markup languages, especially if they are going to shield the user from it all anyways.
评论 #41256195 未加载
评论 #41256538 未加载
评论 #41256050 未加载
评论 #41265640 未加载
j1elo9 months ago
Before I learned the existence of Markdown, the intuitive most logical markup for me was (and after 10+ years of writing Markdown, still is):<p>* *Asterisks* should be bold. Like WhatsApp and Slack do. Because they bring attention to the eye, marking a strong emphasis, and also because for italics there seem to be a much better alternative.<p>* &#x2F;Slash&#x2F; should be <i>italics</i>. Young me thought this was so obvious! Because <i>italic text is leaning to the right</i>, just like the slash bar. (Note that with time I ended up realizing that this would be a bad idea because slashes are too commonly used in plain written language. The parser would need to be too clever. But still, seemed nice for a while :-)<p>* _Underscore_ should be underline. I mean, the name says it all. This is so obvious to me that I never understood how it&#x27;s not the case. I had been writing _this_ to visualize an underlined word for so much time before learning Markdown, that having it for italics just <i>feels strange</i>.<p>Anyway. If someone knows some resource about the thought process, discussions, or decisions that were made to adopt the current syntax (especially to decide that _underscore_ should italicize, which feels so strange) please let me know, I love reading about that kind of thing :)
评论 #41260994 未加载
评论 #41264083 未加载
评论 #41260506 未加载
评论 #41261020 未加载
评论 #41264963 未加载
评论 #41261581 未加载
评论 #41259911 未加载
gkoberger9 months ago
One thing I love about being able to see the syntax when editing is that you know what&#x27;s about to happen. A backspace will always delete the previous key; you won&#x27;t end up in a situation where you&#x27;re deleting a whole block of content. And when you type, you know if the cursor is on the left or right side of the &quot;*&quot;, whereas in WYSIWYG it could be on either side of the invisible change from bold to regular.<p>It&#x27;s much more relaxing for me to write in Markdown, because I don&#x27;t have to think about the mode I&#x27;m in or how to get out of a small pickle. Everything is just a character.<p>I don&#x27;t think Markdown is for everything. Microsoft Word is not a Markdown editor, and most people are better served by a WYSIWYG editor. But for writing content, I always prefer personally to write in markdown (and to see the syntax), since it&#x27;s easier to focus more on writing and less on the editor.
评论 #41258309 未加载
评论 #41303945 未加载
评论 #41256348 未加载
fenomas9 months ago
Related: given that markdown is meant to be <i>read</i>, it kind of drives me up the wall that some people nowadays run autoformatters like Prettier on it. Super-aggressive formatters like prettier remove various whitespace, and mangle other things that human authors do for readability. Which is fine if the file is something that&#x27;s only ever meant to be parsed by scripts, but the whole point of markdown is that people read it!<p>(edited to add: It wouldn&#x27;t really be an issue if prettier had some config options for not mangling whitespace, but that ship seems to have sailed for some reason.)
评论 #41258009 未加载
评论 #41258520 未加载
评论 #41261276 未加载
评论 #41258092 未加载
msf10249 months ago
The reason I write in markdown is because it is fast and keyboard-driven. I don&#x27;t want to see it when I&#x27;m looking at my notes or editing them. The idea that it is meant to be seen is no more than a personal preference.
评论 #41256874 未加载
评论 #41255669 未加载
thomascgalvin9 months ago
I generally don&#x27;t even like syntax highlighting for Markdown. I find having the text jump around because it became bold or italicized distracting, and it&#x27;s even worse when a header is suddenly a larger size and everything below it is pushed down the screen.<p>Markdown is simple, and I like working with it simply.<p>I suppose there is some value in having the more complicated aspects, like images and tables, checked for syntax so you can see if you&#x27;ve made a mistake, but I run a macro to generate those anyway, so I&#x27;m fairly confident in the result.
评论 #41258059 未加载
red_admiral9 months ago
Trello, once made for developers by developers, has announced that some time this August they will disable the markdown editor on desktop and force you to use the WYSIWYG one. The markdown one will remain on mobile, so there&#x27;s clearly no compelling reason to do this. There won&#x27;t even be an opt-out anymore.<p>(Could someone please find out which resources we all have to add to ublock to work around this?)
taeric9 months ago
Oh wow. From headline, I first thought this meant that viewing a markdown document should show me the markup. Which falls on its face with images and links, of course.<p>No, this is about editing the document. And... I confess I&#x27;m confused on why folks would want the opposite? WYSIWYG is, of course, a thing and popular for many reasons. So, I can see having the option to operate in that way. But a huge benefit of markup languages of any kind is that I can see the markup. Fully agreed that I should be able to see it.
评论 #41258093 未加载
Doctor_Fegg9 months ago
&gt; I have no idea why there are now apps that use Markdown as their back end storage format but only show styled text without the Markdown source code visible.<p>Because backend storage of rich text is not a solved problem?<p>RTF is a horrid, over-complex serialisation. Some platforms have their own internal format for rich text (e.g. NSAttributedString) but serialisation is either lacking or platform-specific.<p>Writing as WYSIWYG but storing in the backend as Markdown is not an insane idea, and I say that as someone whose muscle memory has been cmd-B&#x2F;cmd-I since 1992 and would never choose to actually compose in Markdown unless I had to.
tjoff9 months ago
Though only show the markdown if one is expected to edit it (which would be the case in an editor).<p>Otherwise, if the usecase is consumption you are better to show the generated output.
评论 #41258468 未加载
评论 #41255565 未加载
bfung9 months ago
&gt; Maybe I don’t know much about Markdown…<p>Says the inventor of it, 20yrs ago. <a href="https:&#x2F;&#x2F;daringfireball.net&#x2F;projects&#x2F;markdown&#x2F;" rel="nofollow">https:&#x2F;&#x2F;daringfireball.net&#x2F;projects&#x2F;markdown&#x2F;</a>
评论 #41256745 未加载
ericyd9 months ago
&gt; Trust me, it’s meant to be shown.<p>Maybe it&#x27;s time to accept that this thing you created is bigger than yourself and it&#x27;s future is not in your hands.
gsinclair9 months ago
Grover thinks the purpose of Markdown is that the author knows what HTML tags will be generated. That was his purpose, but it’s long outgrown that!
iambateman9 months ago
Ahh, yes. I, as a developer, think Markdown is wonderful – simple even – so I use it all the time. It finds it&#x27;s way into my applications and interfaces. The pure elegance is the stuff of dreams.<p>Then I bring a client into their app for an onboarding meeting. When they see a bit of Markdown, they start to fidget, then sweat. &quot;Will I be asked to perform these magic incantations?&quot; they wonder. They feel a bit of queasiness but try to hold it back. Perhaps this will be ok. But, after about 10 minutes, I show them that `# Header` is how you make a header.<p>Their disdain is now total...How dare I imply that a hashtag implies a header. This is hard.<p>Then, I show them a link. &quot;It&#x27;s just like this&quot;, I say: `(<a href="https:&#x2F;&#x2F;example.com)[example" rel="nofollow">https:&#x2F;&#x2F;example.com)[example</a> link]`. &quot;You&#x27;ll get used to it.&quot;<p>Finally, the client pounds his fists on the table. &quot;That&#x27;s CODING DAMMIT. WE PAID YOU TO DO THE CODING YOU *$$HOLE. I want it to be like...well...Microsoft Word.&quot;<p>---<p>You see, my friends...the real problem here is that Microsoft Word is a nightmare but it is _the_ nightmare to which all other dreams are compared. And thus, sheepishly, I awaken, and install TinyMCE.
评论 #41257807 未加载
评论 #41258055 未加载
评论 #41258268 未加载
rubymamis9 months ago
&gt; I have no idea why there are now apps that use Markdown as their back end storage format but only show styled text without the Markdown source code visible.<p>The reason why we do in Plume[1] is simple - we want a WYSIWYG editor for our non-technical users, yet also the reassuring longevity of a plain text format such as Markdown. Simple as that. In my opinion, it&#x27;s a combo that&#x27;s hard to beat.<p>[1] <a href="https:&#x2F;&#x2F;www.get-plume.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.get-plume.com&#x2F;</a>
ides_dev9 months ago
This is precisely why I use Bear [0] (although Bear does hide the link URLs) and just cannot get on with Notion. The worse thing about editing in Notion (and other editors where the syntax is hidden) is trying to adjust `mono-space text`. It always seems to get confused about whether I&#x27;m inside the mono-space area or outside it and I end up making stuff mono-space that shouldn&#x27;t be or vice versa.<p>[0] <a href="https:&#x2F;&#x2F;bear.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bear.app&#x2F;</a>
评论 #41257503 未加载
teo_zero9 months ago
When I edit a C program, comments are highlighted in a specific way, but the &#x2F;&#x2F; characters are not removed. Why should editing a markdown text be different?
bastawhiz9 months ago
If you only care to expose limited formatting to the user, whether the file is stored in Markdown or not is immaterial. It could be stored in Word 2003 DOC format and export to Markdown, and if the serialization and deserialization are faithful, it doesn&#x27;t matter at all.<p>Markdown is portable, fast, safe, and simple. Being able to dump your data as Markdown (which you know works, because the Markdown version is the literal source of truth) means you&#x27;re guaranteed to be able to extract your data and move it wherever you want with perfect fidelity. That&#x27;s a huge bonus.<p>The argument here is pointless if your concern isn&#x27;t the syntax: Markdown _as a serialization format_ versus Markdown _as a typeable syntax_ are two separate concerns. The UX of a tool meant for editing Markdown is going to be extremely different than a tool to edit simple rich text.<p>In my own app, I default to WYSIWYG with an option to edit the raw markdown (for podcast show notes, which have very limited formatting options). Why? Because the alternative is HTML and that sucks to write by hand (especially if you can&#x27;t use most tags).
Vaslo9 months ago
I’ve run into this exact same issue with many of the self hosted wikis&#x2F;tools. Some of the ones I had interest in like Trilium don’t have native support and you have to use a plug-in hack to see both the code and the preview, or you have to click back and forth between rendering and redoing.<p>I just wouldn’t have markdown in my software if I wasn’t going to support a preview.
Y-bar9 months ago
I am currently trying to fit Obsidian into my workflow as a note taking app, and this is one of my main gripes about the app. Another being that it does not integrate well with the operating system spell checking, so adding a word elsewhere to the system dictionary does not reflect in Obsidian, and the other way around.
评论 #41255552 未加载
评论 #41255778 未加载
throwmeawaysire9 months ago
People say that Markdown is isomorphic to HTML but HTML has &lt;b&gt;, &lt;i&gt;, &lt;em&gt;, and &lt;strong&gt;, while Markdown bold and italic almost always get transformed into &lt;em&gt; and &lt;strong&gt;, right? According to MDN the HTML standard defines clearly very different semantics for the elements, although IIRC there was once a drive to move away from &lt;b&gt; and &lt;i&gt; as presentational, which is why people started using &lt;em&gt; and &lt;strong&gt; instead but in a way as if they were presentational, kinda defeating the point. IDK, what do you think?<p>&quot;&lt;b&gt;: The Bring Attention To element&quot; &quot;&lt;i&gt;: The Idiomatic Text element&quot; &quot;&lt;em&gt;: The Emphasis element&quot; &quot;&lt;strong&gt;: The Strong Importance element&quot;
dogsledsleddog9 months ago
I think the don&#x27;t do it if you are mixing, purist thinking cycles through for each UI and is generally pointless and doesn&#x27;t serve people who take it up.<p>All the rat poison oriented window managers also have a great point and the ones with no mouse support at all might be perfect for many but it is silly and counter productive not to provide the mouse support because it is an anti pattern and pretend that all the users who need to see the benefits of avoiding the anti pattern, and practice [not] using it, are going to somehow magically end up trying the purist UIs.
hoosieree9 months ago
Probably easier to get people to change the name from README.md to RENDERME.md.
评论 #41255700 未加载
paradox4609 months ago
I&#x27;d prefer if we stopped using markdown all together, and moved to something like djot: <a href="https:&#x2F;&#x2F;github.com&#x2F;jgm&#x2F;djot">https:&#x2F;&#x2F;github.com&#x2F;jgm&#x2F;djot</a>
评论 #41257065 未加载
评论 #41257030 未加载
评论 #41257175 未加载
chrismorgan9 months ago
&gt; <i>If you want WYSIWYG, do WYSIWYG. If you want Markdown, show the Markdown. Trust me, it’s meant to be shown.</i><p>One valuable thing about using Markdown as an data storage&#x2F;exchange format is that it&#x27;s often easier to manipulate; for example, diffs are normally going to be better, and content edits often easier. Mind you, a proper encoding of a WYSIWYG format, and corresponding tooling, <i>will</i> be better... but for quick-and-dirty that <i>normally</i> works well, Markdown is ultimately pretty good (unfortunately, in my opinion).
voltaireodactyl9 months ago
There’s a screenwriting markdown variant called fountain that has underlining and basically works perfectly for nearly any writing. Wish it were more widespread.
slightwinder9 months ago
But syntax is ugly, especially the more complex parts we have now. And I think some of them, like tables, code blocks or modern link-style, weren&#x27;t even part of the original markdown.<p>And the reason I prefer Markdown, is because it&#x27;s not proprietary, and Obsidian, my preferred Markdown-Tool, has a different workflow than the usual WYSIWYG-Tools. If Obsidian would use json or yaml for everything, I would still use it. It&#x27;s just a tool for me, not the goal.
verdverm9 months ago
There are some editors, like TipTap, that output a json object, even though they look like they could be markdown editors.<p>This is my goto React Markdown editor, very solid out of the box and customizable in all sorts of ways<p><a href="https:&#x2F;&#x2F;uiwjs.github.io&#x2F;react-md-editor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;uiwjs.github.io&#x2F;react-md-editor&#x2F;</a>
jareklupinski9 months ago
put a &quot;Show Markdown &#x2F; Show Result&quot; toggle button at the top of the textbox that contains the editable field<p>save the current setting to a cookie<p>some people who stay on the rendered side sometimes forget the syntax, and use the Show Markdown button to check how something was created
评论 #41255839 未加载
评论 #41256964 未加载
preommr9 months ago
90% sure the reason is that new users, not familiar with the app, want to see that the change is actually taking place. Without it, the user may expect the post would literally be &#x27;*text*&#x27; instead of being bolded.
zeveb9 months ago
I think that this is correct. Also, we really shouldn’t forget that Markdown is meant to generate HTML, and that HTML blocks are valid Markdown: a system which does not permit it isn’t really using Markdown.
bitwize9 months ago
Maybe it&#x27;s time we brought back the &quot;Reveal Codes&quot; command?
eslaught9 months ago
I guess I&#x27;ll defend the minority opinion.<p>For context, I write over 100k words a year. That&#x27;s something like 150 pages depending on how you format it. This includes both technical documents (which I mainly do in Latex) and more traditional long-form writing (which I do in Markdown).<p>For technical documents, formatting is very much a key part of the presentation, so I want to see the markup. I mainly use Emacs and I render the PDF from the terminal when I want to see it. Fidelity to the final result is essential, so I don&#x27;t bother with Latex IDEs (unless I&#x27;m doing collaborative editing on Overleaf).<p>For my long-form writing, I want the markup to get out of the way. I use Markdown because it&#x27;s simple and portable and generates a large number of formats (via Pandoc); that does NOT mean that I want the asterisks and hash signs and so on staring me in the face. Also, frankly, it&#x27;s just easier to write when the text looks pretty. For most of this writing I write in Typora (with a nice variable-width font), and then edit in Emacs with the generated PDF side-by-side.<p>Why bother with Markdown at all? Because Word ultimately gets in the way of me producing nice documents. The fact that I can move my cursor to see exactly what the markup is, and that this markup is simple and straightforward and maps well into what I&#x27;m trying to generate, helps me focus on content and avoid distractions. Word has far too many knobs, far too many ways to do something that looks <i>visually</i> correct but generates the wrong markup (especially when you&#x27;re going to do post-processing in some other tool), and really hinders refactoring (when you need to make global style changes). So I use Markdown, but again, that doesn&#x27;t mean I want markup staring me in the face.<p>I&#x27;m not sure why people are so incredulous that this is a desirable goal? I mean it should be pretty obvious that the apps would not exist if there wasn&#x27;t a market for it, so clearly I&#x27;m not the only one who feels this way.
timetraveller269 months ago
It should be optional, hide by default (maybe like Obsidian where is only visible on the cursor&#x27;s line) but add an option to make it always visible
kragen9 months ago
maybe as a compromise the markdown metacharacters should be displayed in a lighter-weight font, a smaller font, or a reduced-contrast color? then you can see them, so it isn&#x27;t a mystery how to type them, but the visual noise they add to the text you&#x27;re editing is minimal
deafpolygon9 months ago
I prefer not to see the markdown, and only the styling. We used to have a smattering of RTF-styled notetakong apps until they all became markdown-backed ones. It’s telling that they’re hiding the Markdown. People don’t want to see it.
phone86753099 months ago
&gt; Maybe I don’t know much about Markdown, but my understanding is that the whole point of it is to provide a syntax where the most common HTML tags for prose can be replaced by simple punctuation characters that are meant to be visible to the writer.<p>Cracking up at this quote
评论 #41256061 未加载