Re:Beyond Markdown
by jitl on Saturday July 01, 2023 @09:14PM
(#36557181)
But I like to write paths like /usr/bin/ in my text and don’t want to worry about backtick code quoting them every time
[ Parent
| on HN ]
Re:Beyond Markdown
by SoftTalker on Saturday July 01, 2023 @09:48PM
(#36557361)
Most people don't write file paths. Only a concern for programmers, who should be fine escaping them by whatever mechanism.
Most people don’t write markdown! What’s the demographic of markdown writers who don’t write file paths? Bloggers?
Re:Beyond Markdown
by melagonster on Sunday July 02, 2023 @12:59AM
(#36558369)
this may be a huge number, because Evernote and a lot of note applications relying on markdown.
> Evernote
Since when?
Re:Beyond Markdown
by melagonster on Monday July 03, 2023 @06:48AM
(#36571160)
I apologise, I confused it.
Notion users, Reddit users, etc.
I will say that forward slashes are still more common in regular english text even among non-programmers than underscores. For example, listing options a/b/c.
And you know, URLs.
I don’t really think of Notion as “markdown” but I suppose you’re right since we support a bunch of markdown conventions. Some things are different though like `> ` is a toggle block, and `” ` a quote block. Unfortunately we already abuse / for a command menu, which is by far my least favorite feature. I want to make a setting to disable it but it goes against our anti-settings philosophy.
Re:Beyond Markdown
by doubleunplussed on Saturday July 01, 2023 @09:55PM
(#36557410)
And in markdown you chuck them between backticks to indicate they're verbatim text to be rendered in monospace.
> "And in markdown you chuck them between backticks to indicate they're verbatim text to be rendered in monospace."
Only if the intent is for the URL to be copy/pasted, otherwise you enclose the URL in <url> or [text](url) to make it clickable.
Most markdown implementations make URLs clickable without the angle brackets.
Uh.. what about all those non programmers that write URLs?
I think many/most people use slashes more often than they use asterisks, however.
Re:Beyond Markdown
by simonklitj on Saturday July 01, 2023 @11:19PM
(#36557907)
Sure, but a slash before and after a word? I don’t think that’s common outside of file paths.
Re:Beyond Markdown
by oneeyedpigeon on Sunday July 02, 2023 @04:10AM
(#36559402)
Not even common including file paths, unless you mean directory paths. Even then, only necessary if you really want to unambiguously indicate a directory in the path itself.
Using slashes for a short/small/abbreviated list is relatively common. For example, the top post on the hiring thread right now is for a "Full-stack/frontend/product engineer". There's another one describing a "M/W/Th" hybrid schedule.
no, but most people definitely use links in their texts and they have the same problem. / is also regularly used for fractions or/and in a situation where you could use two words
Re:Beyond Markdown
by avgcorrection on Sunday July 02, 2023 @06:02AM
(#36559995)
This is a real problem considering that some programmers are just sloppy with code-quoting paths and such. And it’s even debatable whether (sort of stylistically) you should even code-quote paths.
There's the same problem with variables and filenames containing 2+ underscores, resulting in unwanted italics.