cljdoc

technosophist 2025-03-30T17:06:29.987219Z

Not sure if this has been discussed before (I dug into the code and issue but couldn't find anything). Is there any desire/objection to convert -- to en-dash and --- to em-dash? Or are we not wanting to get into any typography extensions for flexmark?

lread 2025-03-30T17:43:25.637739Z

Hiya @technosophist! We typically use github rendering as a guide. If it is doing something, we consider it. In some cases we do a better job than github, for example we render adoc more nicely than github does. Does github do something special with -- and ---?

technosophist 2025-03-30T17:44:03.159179Z

Good question. I noticed that codox does, but didn't check Github

technosophist 2025-03-30T17:48:05.128949Z

It looks like it GFM uses --- for https://github.github.com/gfm/#thematic-breaks and https://github.github.com/gfm/#setext-headings

lread 2025-03-30T17:50:03.629019Z

Right.... forgot that they can be used as header syntax:

I am a header
-------------

technosophist 2025-03-30T17:51:07.138949Z

I can just insert a literal em-dash, so it's not a huge deal. It just isn't wide enough when looking at a monospaced font (e.g. in code and REPL), but I guess I can just live with that compromise. 🙂

lread 2025-03-30T17:52:37.758399Z

I just looked up adoc, and it seems to understand -- as an emdash (under specific cases) https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#text-replacements

technosophist 2025-03-30T17:56:12.370759Z

Both those GFM cases pretty strictly require a single line of only hyphens, so I suppose it would be possible to support em-dash inline, but I don't see any mention of it.

technosophist 2025-03-30T17:57:07.829629Z

nah. just did a test and it doesn't

technosophist 2025-03-30T17:57:26.366599Z

yeah I suppose I could use asciidoc...

lread 2025-03-30T17:58:04.778499Z

I'm a fan of adoc. When given a choice, I use it!

👍 1
technosophist 2025-03-30T18:00:50.822119Z

I might actually like making tables then. I hate wrestling markdown over tables and then just being disappointed with the result.

lread 2025-03-30T18:05:35.360199Z

Adoc is actually thoughtfully designed for creating documentation. I like that! Tables can be headache in any markdown... but you have more control in asciidoc.