www.julialang.org
www.julialang.org copied to clipboard
Make <H> tags on Community and homepage clickable
Hey @tlienart, how can we make the H tag's on the various pages clickable?
If the page is in Markdown and you use the Markdown syntax for headings, it's done automatically. (Look at https://julialang.org/downloads/#older_releases for example)
Yes, but for the pages where we embed the HTML in markdown, those don’t work.
Here's a simple way, not the most elegant but who cares: just use ~~~
and write markdown so:
~~~
<lots of HTML here>
~~~
## a section
~~~
<more HTML>
~~~
## another section
and then you'll get the automated clickable stuff without having to really think about it
PS: not sure that's 100% clear but what's in ~~~
doesn't need to be "closed" HTML so you can have something like
~~~
<div class="blah foo">
~~~
## a title
~~~
</div>
~~~
(though of course in such a simple case, you should ideally use @@blah,foo ... @@
but whatever)
Ah, okay thanks!
@logankilpatrick I guess this should be closed if @tlienart's suggestion resolves your issue, right?