pandoc/src/Text/Pandoc/Readers
fiddlosopher f7b705b44c Implemented implicit reference-style links to section headers in markdown.
For example, if you have a header '# Supported architectures', you can
link to it with '[Supported architectures]'.  If there are multiple
headers with this label, the link will point to the first of them.
Implicit references are always overridden by explicitly specified references.
Addresses Issue #20.

+ Moved isPunctuation, uniqueIdentifiers, and inlineListToIdentifier from
  Text.Pandoc.Writers.HTML to Text.Pandoc.Shared.

+ Added stHeaders to ParserState.   This holds a list of header texts
  used in the document, and is used to construct implicit header references.

+ In Text.Pandoc.Readers.Markdown, added call to headerReference
  parser in initial parsing pass, constructing a list of section header
  labels. This is then passed to uniqueIdentifiers to produce
  identifiers, and a list of implicit references is constructed. This is
  added to the end of the explicitly specified references, so it will be
  overridden by explicitly specified references. All of this processing
  is skipped if --strict was specified.

+ Modified documentation in README.



git-svn-id: https://pandoc.googlecode.com/svn/trunk@1086 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-11-22 17:14:21 +00:00
..
HTML.hs Reverted back to state as of r1062. The template haskell changes 2007-11-03 23:27:58 +00:00
LaTeX.hs Fixed bug in LaTeX reader (pointed out by Mark Eli Kalderon): 2007-11-10 21:44:05 +00:00
Markdown.hs Implemented implicit reference-style links to section headers in markdown. 2007-11-22 17:14:21 +00:00
RST.hs Reverted back to state as of r1062. The template haskell changes 2007-11-03 23:27:58 +00:00