News for hackers. Stuff that matters.
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
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.
Re:Beyond Markdown by jitl on Saturday July 01, 2023 @10:29PM (#36557586)
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.
Re:Beyond Markdown by zmix on Sunday July 02, 2023 @04:13AM (#36559420)
> Evernote

Since when?

Re:Beyond Markdown by melagonster on Monday July 03, 2023 @06:48AM (#36571160)
I apologise, I confused it.
Re:Beyond Markdown by Macha on Sunday July 02, 2023 @10:05AM (#36561598)
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.

Re:Beyond Markdown by jitl on Sunday July 02, 2023 @03:09PM (#36564617)
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.
Re:Beyond Markdown by blooalien on Saturday July 01, 2023 @11:13PM (#36557873)
> "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.

Re:Beyond Markdown by mort96 on Sunday July 02, 2023 @08:35AM (#36560883)
Most markdown implementations make URLs clickable without the angle brackets.
Re:Beyond Markdown by dyarosla on Saturday July 01, 2023 @10:22PM (#36557543)
Uh.. what about all those non programmers that write URLs?
Re:Beyond Markdown by kej on Saturday July 01, 2023 @10:45PM (#36557691)
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.
Re:Beyond Markdown by kej on Monday July 03, 2023 @04:58PM (#36578752)
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.
Re:Beyond Markdown by FinnKuhn on Sunday July 02, 2023 @08:51AM (#36561023)
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.
Re:Beyond Markdown by anamexis on Sunday July 02, 2023 @11:17AM (#36562227)
There's the same problem with variables and filenames containing 2+ underscores, resulting in unwanted italics.
Re:Beyond Markdown by ilyt on Sunday July 02, 2023 @01:51PM (#36563788)
That at least is rarer than paths.