ingydotnet / swim-pm

15 stars 7 forks source link

Make '//' a markup for literal / #25

Closed ingydotnet closed 9 years ago

ingydotnet commented 10 years ago

Text like:

Do you want beer/wine for dinner/supper?

Becomes:

Do you want beer<em>wine for dinner</em>supper?

One hack is to say:

Do you want beer / wine for dinner / supper?

But the spaces are literal. This seems a better solution:

Do you want beer//wine for dinner//supper?

Need avoid confusion with URLs and file paths but they are not normal prose, and you do something like this anyway:

`file://abc/xyz`

so not really an issue.

ingydotnet commented 9 years ago

Decided to go with foo/bar\/baz. This is just normal escaping.

Not really a big use case so no need to worry about it.