Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [docs] Anchors in Markdown?
Destry wrote #301212:
But if I’m reading that wrong and Txp articles can’t be managed as flat-files, then my feelings on using Txp still stands.
Why all the hate for Textpattern’s admin ;)
I practically live in the backend screens of Textpattern, so my opinions are biased. I like the fact that my data can be manipulated and displayed in all kinds of ways, more so than CSS could ever do.
With TXP 4.6, we’ve entered into a better experience for entering content and manipulating the design. Textile let’s me write heads down, no fancy widgety tool bars to go click. The presentation layer is so simple, if you want it to be, one page, one style and a few forms.
Compared to having to re-learn, I’d rather bend the muscles I’ve built up over time.
Last edited by hcgtv (2016-09-07 21:34:46)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: [docs] Anchors in Markdown?
philwareham wrote #301073:
You don’t need to make an anchor – Jekyll does that automatically
Ok, so that’s a Jekyll trick and not a Markdown trick. Is there a way to do it with Markdown too? I’d like to know if it’s possible because I have other Markdown docs not in Jekyll that I would love to use in-page anchors with.
Offline
Re: [docs] Anchors in Markdown?
Not automatically. You’d have to use something like this:
# Table of Contents
* [Chapter 1](#chapter-1)
* [Chapter 2](#chapter-2)
* [Chapter 3](#chapter-3)
## Chapter 1 <a id="chapter-1"></a>
Content for chapter one.
## Chapter 2 <a id="chapter-2"></a>
Content for chapter one.
## Chapter 3 <a id="chapter-3"></a>
Content for chapter one.
Offline
Re: [docs] Anchors in Markdown?
Thanks. I just came across that info too.
It doesn’t work in Flarum posts, unfortunately, which is one place I’m in need of it, but it will be handy in other .md docs on GitHub.
Offline
Re: [docs] Anchors in Markdown?
The GitHub site adds anchors to any Markdown/Textile docs that are rendered in their system, not just in Jekyll.
Offline
Re: [docs] Anchors in Markdown?
Ah, right. I remember the little link icons.
Offline