Vicent Marti
bf1e52520e
Silence x64 warnings
2011-12-13 19:08:53 +01:00
Vicent Marti
e1a838a764
Cleanup the buffer code
...
Asserted stuff should be asserted.
2011-12-13 19:01:30 +01:00
Vicent Marti
36b4518226
Merge remote-tracking branch 'chitsaou/escape'
2011-12-12 20:58:35 +01:00
Vicent Marti
c419f6276f
Revert to non-secure Houdini escaping
...
Non-secure is the same escaping mode we used before; I don't get how
escaping the forward slash makes HTML escaping more secure (hint: it
doesn't).
2011-12-12 20:34:21 +01:00
chitsaou
519691a235
don't hook blockhtml callback when escape_html is on
2011-12-08 10:44:41 +08:00
chitsaou
4d42772c32
implement HTML renderer with escape_html option
2011-12-08 10:44:24 +08:00
chitsaou
acbbf3a453
add HTML_ESCAPE option to renderer
2011-12-08 10:44:00 +08:00
Vicent Marti
63d995158e
Fix autolinks that end in a period
2011-12-03 23:41:34 +01:00
Vicent Marti
e81f7485f9
Fix off-by-one with backticks and emphasis
...
...well that was easy
2011-12-03 23:18:21 +01:00
Vicent Marti
a20ff08f6c
Change include wards
2011-11-26 07:06:50 +01:00
Vicent Marti
c5eb872e97
Backport the changes to autolinking URLs by @codyrobbins
2011-11-26 07:00:43 +01:00
Vicent Martí
187444d917
Merge pull request #83 from cweider/master
...
Exclude <style> blocks from replacement
2011-11-25 21:56:06 -08:00
Vicent Martí
be410f637d
Merge pull request #82 from andre-d/linktextfix
...
Corrected the way link alt text is handled
2011-11-25 21:54:59 -08:00
Vicent Marti
54523fc7db
Initialize the in_link_body
variable
2011-11-26 06:53:52 +01:00
Chad Weider
d976a845ad
Commit compiled code.
2011-11-25 13:51:55 -08:00
Chad Weider
4a51f62c5d
Include several other excluded blocks from original SmartyPants
2011-11-25 13:49:49 -08:00
Chad Weider
844ce0e219
Do not replace contents of <style> blocks.
2011-11-25 13:47:16 -08:00
Andre D
7b42d86de0
Corrected the way link alt text is handled
2011-11-22 22:04:14 -05:00
Vicent Marti
23d4fcda11
smartypants: Silence the warning with a (void) cast
2011-11-22 08:10:52 +01:00
Vicent Martí
9f379cc2ab
Merge pull request #81 from andre-d/listfix
...
Nesting lists of different types works again
2011-11-21 13:42:32 -08:00
Andre D
6cbb0c9995
Nesting lists of different types works again
2011-11-21 14:43:02 -05:00
Vicent Martí
efd7fa7661
Merge pull request #77 from jbergstroem/master
...
Assorted compile fixes
2011-11-17 19:29:53 -08:00
Vicent Martí
d2d3c533a9
Merge pull request #80 from andre-d/master
...
Fixes corruption with vbufprintf
2011-11-17 19:29:10 -08:00
Vicent Marti
9dfeea9da1
Backport changes from Snudown
...
Add escaping to ~ and ^, and disable autolinking inside of link bodies.
Note that the fix for autolinking is different than the one in Snudown;
I didn't want to touch the callbacks table.
2011-11-18 04:17:19 +01:00
Vicent Marti
3c32220c7b
Fix unordered lists followed by ordered list bug
...
"An unordered list followed by an ordered list (separated by double
linebreake) yields only an unordered list with a set of paragraphs
inside it."
Original patch by Igor Bochkariov, backported from Redcarpet.
2011-11-06 21:21:06 +01:00
Vicent Marti
4f2bd3493f
makefile: Remove MFLAGS
2011-11-06 21:20:53 +01:00
Andre D
86b851a55b
Corruption in vbufprintf
2011-11-01 18:02:00 -04:00
jbergstroem
809c8bf15f
fix: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
2011-09-28 23:18:18 +02:00
jbergstroem
db350c6bc0
fix: error: ‘esc’ may be used uninitialized in this function
2011-09-28 23:13:49 +02:00
Vicent Martí
5cf7c86c96
Merge pull request #74 from spladug/escape-link-text
...
Make sure www-autolink text is entity-escaped.
2011-09-20 14:46:03 -07:00
Neil Williams
720ff71578
Make sure www-autolink text is entity-escaped.
...
rndr_link assumes the text is already escaped because
it's usually run through parse_inline. This is not true
when it's called via www-autolink.
2011-09-15 20:58:20 -07:00
Vicent Marti
137c1e6f20
Fix table cells being rendered as table headers
2011-09-13 19:44:40 +02:00
Vicent Marti
3cb0b6873a
Locate block tags even if they have attributes
...
Previously, block tags like <div>foo</div> were being properly detected,
but tags with attributes such as <div class="blank">foo</div> were
inproperly discarded.
2011-09-13 19:26:59 +02:00
Vicent Marti
877aa79c9e
Fix compilation for Smartypants example
2011-09-13 00:21:33 +02:00
Vicent Marti
72a940f269
Fix mixed HTML/URI escaping
2011-09-13 00:20:42 +02:00
Vicent Marti
47c25422f1
Fix detection of block tags
2011-09-08 23:03:39 +02:00
Vicent Marti
5629a8ab4f
Ops! Use URI escaping instead of URL
...
URL escaping fully escapes all URL components to allow embedding an URL
inside of another. URI escaping is what we need to build the links for
<a> tags!
2011-09-08 22:50:03 +02:00
Vicent Marti
1f78bc3df4
Change signature of Smartypants
...
Don't use input buffer anymore.
2011-09-08 21:48:51 +02:00
Vicent Marti
a3373cd380
Use Houdini for escaping
...
Ta-da.
2011-09-08 21:37:50 +02:00
Vicent Marti
9970b3da05
Fix out of bounds in stack
2011-09-08 06:41:57 +02:00
Vicent Martí
b54fb6bfa3
Merge pull request #67 from brief/master
...
Enforcing `const` and a compiler warning
2011-09-04 10:03:59 -07:00
brief
78a764317b
Use explicit cast to fix compiler warning
2011-09-03 14:34:03 -07:00
brief
97da8f23da
Enforce const
when parsing emphasis
2011-09-03 14:21:58 -07:00
Vicent Marti
2c4b7f5689
Remove GH-style code blocks
...
This is very specific to GitHub. If you need something similar, write a
custom callback to handle your needs. :)
2011-09-02 23:41:51 +02:00
Vicent Marti
63b1a9ebcf
Enforce const
on the renderer API
2011-09-02 23:40:21 +02:00
Vicent Marti
c650128164
Remove ref counting from the buffer struct
2011-09-02 23:33:59 +02:00
Vicent Marti
da1a1017f1
Update README with UTF-8 features
2011-09-02 23:28:20 +02:00
Vicent Marti
8a29cf4b3a
Update Haskell bindings URL
2011-09-02 23:07:02 +02:00
Vicent Marti
b8ed678a98
Enforce const on input document
2011-09-02 21:28:47 +02:00
Vicent Marti
6091758705
Do not use a local-aware isspace
...
It may conflict with UTF-8 characters in the extended range.
2011-09-02 21:12:45 +02:00