swcarpentry / DEPRECATED-bc

DEPRECATED: This repository is now frozen - please see individual lesson repositories.
Other
299 stars 383 forks source link

Change some anchors to enable EPUB post processor #566

Closed rgaiacs closed 10 years ago

rgaiacs commented 10 years ago

550 describes how to workaround pandoc's limitation to deal with anchors. This PR change some anchors since we will need to recreate it from the text.

gvwilson commented 10 years ago

Hm... why can't we have hyphens in anchor names when working with Pandoc?

rgaiacs commented 10 years ago

We can have hyphens in anchor names, e.g.

**<a name="comma-separeted-values">comma-separated values</a>** (CSV):

The problem with

**<a name="alias-library">alias</a>** (a library):

is that we need to recreate anchor names from

<strong>alias</strong> (a library):

and it is easy to do using only the text inside strong tag other than searching for : and handle the text before it. For example, how can the script knows if the text between brackets is an complement as the example above or an short version as the first example?

gvwilson commented 10 years ago

This feels fragile, but I can't think of a better way to do it. Go ahead and merge it in...

rgaiacs commented 10 years ago

Merge with #435.