jgm/pandoc — Issue #361: inverted header-identifier-appending
Author: guybrush
Created: 2011-12-16 10:49:15+00:00
State: open

I am using pandoc for writing my notes like a blog. It looks like this:

# 111215

## titleA

## titleB

# 111214

## titleA

## titleC

Now i have the problem that the links to older "entries" get updated everytime I write a new entry.

So I thought, maybe it would be possible to implement a cli-option to tell pandoc to start appending numbers to the headers (for identification) at the bottom of the document?

In my Example `# 111214` would become `#section` and `# 111215` would become `#section-2`.

If this is not easy to implement, no worries! I am fine with manipulating the output with javascript - just thought doing it with pandoc itself would be a cleaner approach (currently i dont include any javascript at all).

*Thank you for pandoc!*