www.julialang.org icon indicating copy to clipboard operation
www.julialang.org copied to clipboard

Make <H> tags on Community and homepage clickable

Open logankilpatrick opened this issue 4 years ago • 5 comments

Hey @tlienart, how can we make the H tag's on the various pages clickable?

logankilpatrick avatar Jun 15 '20 17:06 logankilpatrick

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)

zlatanvasovic avatar Jun 15 '20 17:06 zlatanvasovic

Yes, but for the pages where we embed the HTML in markdown, those don’t work.

logankilpatrick avatar Jun 15 '20 17:06 logankilpatrick

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)

tlienart avatar Jun 15 '20 19:06 tlienart

Ah, okay thanks!

logankilpatrick avatar Jun 15 '20 21:06 logankilpatrick

@logankilpatrick I guess this should be closed if @tlienart's suggestion resolves your issue, right?

zlatanvasovic avatar Jul 30 '20 13:07 zlatanvasovic