d06417125d
+ Entities are parsed (and unicode characters returned) in both Markdown and HTML readers. + Parsers characterEntity, namedEntity, decimalEntity, hexEntity added to Entities.hs; these parse a string and return a unicode character. + Changed 'entity' parser in HTML reader to use the 'characterEntity' parser from Entities.hs. + Added new 'entity' parser to Markdown reader, and added '&' as a special character. Adjusted test suite accordingly since now we get 'Str "AT",Str "&",Str "T"' instead of 'Str "AT&T".. + stringToSGML moved to Entities.hs. escapeSGML removed as redundant, given encodeEntities. + stringToSGML, encodeEntities, and specialCharToEntity are given a boolean parameter that causes only numerical entities to be used. This is used in the docbook writer. The HTML writer uses named entities where possible, but not all docbook-consumers know about the named entities without special instructions, so it seems safer to use numerical entities there. + decodeEntities is rewritten in a way that avoids Text.Regex, using the new parsers. + charToEntity and charToNumericalEntity added to Entities.hs. + Moved specialCharToEntity from Shared.hs to Entities.hs. + Removed unneeded 'decodeEntities' from 'str' parser in HTML and Markdown readers. + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and sgmlCharacterEntity from Shared.hs. + Modified Docbook writer so that it doesn't rely on Text.Regex for detecting "mailto" links. git-svn-id: https://pandoc.googlecode.com/svn/trunk@515 788f1e2b-df1e-0410-8736-df70ead52e1b |
||
---|---|---|
.. | ||
MarkdownTest_1.0.3 | ||
bodybg.gif | ||
generate.sh | ||
html-reader.html | ||
html-reader.native | ||
insert | ||
lalune.jpg | ||
movie.jpg | ||
rst-reader.native | ||
rst-reader.rst | ||
runtests.pl | ||
s5.basic.html | ||
s5.fancy.html | ||
s5.fragment.html | ||
s5.inserts.html | ||
s5.native | ||
tables.db | ||
tables.html | ||
tables.native | ||
tables.tex | ||
tables.txt | ||
testsuite.native | ||
testsuite.txt | ||
writer.docbook | ||
writer.html | ||
writer.latex | ||
writer.markdown | ||
writer.native | ||
writer.rst | ||
writer.rtf |