You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unescaped - run the risk of being automatically converted to other characters in outputs depending on what follows it. -- is commonly converted to an – (U+2013 endash). this is undesirable for code documentation like command line options as they no longer can be copied & pasted. that's why man pages will often write \-\-foo for the --foo command line option.
depending on the renderer, markdown has this feature as well -- it creates endashes whenever it sees --. this def happens on github pages for example.
the current man-to-md script will strip away the \ from something like \-\-foo yielding --foo which turns into –foo which is not good :).
i think just leaving \- as \- should be fine for most markdown renderers ?
The text was updated successfully, but these errors were encountered:
not sure where this is documented. GitHub pages seem to more actively convert content which is where i've been seeing the "--" converted to endashes. smart quotes are a common thing too, although less commonly a problem (e.g. "foo" to “foo”).
unescaped
-
run the risk of being automatically converted to other characters in outputs depending on what follows it.--
is commonly converted to an – (U+2013 endash). this is undesirable for code documentation like command line options as they no longer can be copied & pasted. that's why man pages will often write\-\-foo
for the--foo
command line option.depending on the renderer, markdown has this feature as well -- it creates endashes whenever it sees
--
. this def happens on github pages for example.the current man-to-md script will strip away the
\
from something like\-\-foo
yielding--foo
which turns into–foo
which is not good :).i think just leaving
\-
as\-
should be fine for most markdown renderers ?The text was updated successfully, but these errors were encountered: