Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2016-09-07 21:28:02

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

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)

Offline

#32 2016-09-08 08:07:54

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

#33 2016-09-08 08:14:27

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

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

#34 2016-09-08 08:20:58

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

#35 2016-09-08 08:22:58

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

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

#36 2016-09-08 08:25:35

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [docs] Anchors in Markdown?

Ah, right. I remember the little link icons.

Offline

Board footer

Powered by FluxBB