Commit graph

16 commits

Author SHA1 Message Date
Vicent Marti
dd979be0ed Experimental: New Renderer management
No more dynamic allocation. Explicit is better than implicit.
2011-08-04 16:22:38 +02:00
Vicent Marti
e07028b856 Experimental: Custom allocation of the HTML renderer 2011-08-04 13:14:59 +02:00
Vicent Marti
bebbebfc87 html: Revert "do not render line breaks between HTML tags"
This was not a good fix. There is plenty of HTML that would have been
parsed unproperly, e.g.

	This is a simple example of <em>HTML</em>
	that would have not been broken in two lines.

The proper fix is to always print line breaks instead of newlines, and
ensure that Sundown never inserts newlines when rendering span-level
elements, which is the case since the previous commit.
2011-08-01 16:03:32 +02:00
Vicent Marti
6f0b745604 html: More consistent newlines in the HTML output 2011-08-01 15:59:03 +02:00
Vicent Marti
a336c2684e html: Do not force line breaks between HTML tags 2011-08-01 13:35:42 +02:00
Vicent Marti
1d6f114b86 Sup bro
Add support for the Superscript extension.
2011-07-25 02:15:43 +02:00
Vicent Marti
fe9e518b92 html: Add an extra payload to the renderer 2011-07-22 23:57:14 +02:00
Vicent Marti
cdfaee1993 smartypants: Do not replace inside <code> blocks
Following the original Smartypants code, do not do SmartyPants
replacements inside of <code>, <pre>, <kbd> and <script> blocks.
2011-07-19 21:32:14 +02:00
Vicent Marti
a580f7b2a0 smartypants: Normalize dash replacement
The original SmartyPants comes with three dash replacement modes:

	1 =>  "--" for em-dashes; no en-dash support
	2 =>  "---" for em-dashes; "--" for en-dashes
	3 =>  "--" for em-dashes; "---" for en-dashes

Sundown now runs with number 2, because I am opinionated and I think
that the other 2 options are stupid.
2011-07-19 19:19:55 +02:00
Vicent Marti
5d201dbcdc Rename Upskirt to Sundown
It is by the goodness of God that in our country we have those
three unspeakably precious things:

    freedom of speech,
    freedom of conscience,
    and the prudence never to practice either of them.

                -- Mark Twain, Following the Equator (1897)
2011-07-19 01:10:05 +02:00
Vicent Marti
cf5cb52ae9 Remove html_autolink.c
This file has been moved to Rinku
2011-06-11 16:17:51 +02:00
Vicent Marti
af491aad94 Use function callbacks instead of a switch 2011-06-09 16:31:22 +02:00
Vicent Marti
19115feb28 autolink: Support for link attributes 2011-06-09 15:15:34 +02:00
Vicent Marti
b3957282ce autolink: Cleanup API 2011-06-09 02:58:06 +02:00
Vicent Marti
8af37fd1b4 autolinking: fix bugs 2011-06-08 23:11:58 +02:00
Vicent Marti
cbb7fb53c6 Create an autolinking API for external applications 2011-06-08 18:30:37 +02:00