Hello!
Recently, I found out that using #
in front of a word makes it work as a link. AFAIK, what it did was to make the word / sentence a header. If that’s intentional, is there any way to make a header similar to the following one without making it a link?
Hello!
Hey again.
1 „Gefällt mir“
ondrej
25. März 2021 um 20:55
2
2 „Gefällt mir“
I see. Is there any way though to make a header without having it work as a link?
pfaffman
(Jay Pfaffman)
25. März 2021 um 21:03
4
What is it hurting? It seems pretty subtle to me (and I’m excited to see it’s working this way!)
2 „Gefällt mir“
Just for something I am working on. I don’t really like the anchor icon to appear every so often.
2 „Gefällt mir“
Does anyone have any ideas on how to achieve that? It’s frustrating to see an anchor icon when you don’t need it.
Trying hard to get around to it but no luck. Ideas anyone?
I think you can use HTML heading tags (h1, h2, h3
), like this:
<h3>Unlinked header</h3>
Unlinked header
3 „Gefällt mir“
Of course, how did I miss that? Thank you so much!
By the way, is it possible to use a heading tag while having a word work as a link?
<h2> <a href="https://meta.discourse.org">Yes</a> it is</h2>
but if you’re using HTML to create your headings, you’ll also need to use HTML to create the link
2 „Gefällt mir“
Jagster
(Jakke Lehtonen)
1. April 2021 um 08:54
13
Somehow using html-tags breaks idea of markdown, IMO.
Is there a CSS-trick or something else to hide anchor icon? Link itself isn’t a problem, but that icon.
1 „Gefällt mir“
There’s always a CSS trick , this should do it:
.cooked, .d-editor-preview {
h1, h2, h3, h4, h5, h6 {
&:hover {
a.anchor {
&::before {
display: none;
}
}
}
}
}
2 „Gefällt mir“
system
(system)
Geschlossen,
3. Mai 2021 um 01:17
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.