This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-10
Channels
- # announcements (1)
- # babashka (16)
- # beginners (42)
- # calva (6)
- # clj-kondo (7)
- # clj-yaml (13)
- # cljdoc (7)
- # clojure (34)
- # clojure-bay-area (7)
- # clojure-dev (14)
- # clojure-europe (10)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (91)
- # clojurescript (7)
- # datalevin (3)
- # datomic (35)
- # dev-tooling (8)
- # emacs (22)
- # graphql (1)
- # honeysql (13)
- # hyperfiddle (28)
- # introduce-yourself (1)
- # jobs-discuss (11)
- # juxt (4)
- # lsp (21)
- # off-topic (7)
- # reagent (4)
- # releases (3)
- # spacemacs (16)
- # xtdb (4)
- # yamlscript (2)
I sometimes add an anchor/bookmarks like [#myheading]
on the row above == myheading
to make the link prettier (the generated begins with an underscore). This works fine, except for [#version]
that doesn't generate a <h2 id="version"
when I inspect the generated page. I tried to create an issue, but got this error from github:
I think GitHub might be having some issues? I got this error sporadically when accessing from a Private/Icognito window. If I shift-key + refreshed the page it sometimes corrected itself.
But back to your cljdoc issue. Ya, that seems very weird. I'll see if I can reproduce that locally.
@U1G0HH87L I've not done an end-to-end test, but if I call internal adoc conversion on:
[#version]
== myheading
I get the following HTML:
<div class="sect1">
<h2 id="version"><a class="link" href="#version">myheading</a></h2>
<div class="sectionbody">
</div>
</div>
Which seems correct, right?
Can you share your problematic adoc file with me?Sure, it's https://github.com/polyfy/polylith/blob/issue-318/doc/workspace-structure.adoc page. It works in github, but not when I run it locally.
I checked out your branch and did a local preview and I can reproduce the issue. If I drop to the console in my browser:
> document.getElementById('version')
<input id="version" class="pa2 mr2 br2 ba outline-0 blue" name="version" type="hidden" value="0.2.18-issue318-02">
This is a cljdoc generated hidden input
element with an id
of version
to support the hidden rebuild button. So a link to #version
is hitting that instead of your section header.
I'll raise an issue to remind myself to fix.