Commit graph

11 commits

Author SHA1 Message Date
Samuel Bronson
be552bafdc Update Makefile and .gitignore to deal with smartypants.
... and get "make clean" to work under MSYS, too (*sigh*).
2011-06-05 14:55:08 -04:00
Samuel Bronson
dbc9d800ed Tweaks to make things work better with MinGW. 2011-06-05 14:54:22 -04:00
Vicent Marti
26c68ad080 Include the HTML renderer when building the shared lib 2011-05-11 20:01:17 +03:00
Vicent Marti
eb6f5474c2 Upskirt now renders HTML by default
The XHTML renderer has been changed to HTML by default, with a new
renderer flag called "HTML_USE_XHTML" that enables closing tags.
2011-05-06 20:29:41 +03:00
Vicent Marti
789bcd98e1 SmartyPants is now smart
SmartyPants is no longer an extension flag for the (X)HTML renderer, but
a separate method.

The new function `ups_xhtml_smartypants` external method is a
SmartyPants post-processor that takes an HTML document (e.g. a document
that has just been rendered with `ups_markdown`) and performs
SmartyPants substitutions in it.

This is the same approach that the original SmartyPants takes.
Postprocessing the HTML instead of performing the substitutions at the
Markdown level allows us to work around many problems of the old
implementation:

	- Double quotes now properly open/close between different HTML
	tags and blocks.

	- Support for ``double quoting style'' has been added, and no
	longer conflicts with Markdown code blocks.

	- The limitations of the Upskirt parser (which was splitting
	SmartyPants replacements mid-word in some cases because of active
	character callbacks) no longer apply. All SmartyPants substitutions
	work in all situations.

	- The new parser is easily extendable with more substitutions.

The new SmartyPants parser is slightly faster than the old one.
2011-05-05 17:47:37 +03:00
Vicent Marti
22794bade8 Build the executable without shared lib 2011-04-28 13:33:23 +03:00
Vicent Marti
3f01b80bda Force PIC when building the library 2011-04-20 12:41:37 +03:00
Vicent Marti
0059d6277a Remove profiling flags 2011-04-17 14:07:38 +03:00
Vicent Marti
7c6160bcce Newline after line break 2011-04-17 13:48:50 +03:00
Vicent Marti
481b099032 Add support for syntaxes in fenced code blocks 2011-04-16 13:14:28 +03:00
Vicent Marti
e1e5ea96ff Initial commit 2011-04-15 11:36:46 +03:00