Commit graph

363 commits

Author SHA1 Message Date
Vicent Martí
0e1cb2b157 Improve parsing of continuous list items
- Code blocks nested inside of lists won't be checked
for line starts

- The minimal indentation to continue a multi-paragraph list
has been reduced to 1 space, instead of 4. This is not what the standard
says, but what the Markdown.PL does.
2012-04-12 05:34:51 +02:00
Vicent Martí
bd06011358 Merge pull request #108 from txdv/windows
Add nmake build target for windows.
2012-04-11 14:43:20 -07:00
andrius bentkus
cbf052e35e Add nmake build target for windows.
Expose functions that are needed in the windows dynamic library with
a definition file (sundown.def)
2012-04-11 23:38:48 +02:00
Vicent Martí
6a9a1be67e Merge pull request #104 from rstudio/extern-c
add extern C declaration when using c++ compiler
2012-04-04 12:40:43 -07:00
JJ Allaire
ea1b87928c add extern C declaration when using c++ compiler 2012-04-04 15:15:29 -04:00
Vicent Martí
b84697c226 Update link to Haskell bindings 2012-04-03 00:01:03 +02:00
Vicent Martí
8e5b0d14c9 Fix setting the level offset when parsing multiple docs 2012-03-30 00:05:24 +02:00
Vicent Martí
cd77aea761 Merge pull request #100 from FSX/master
Do not nest the fist list in a table of contents.
2012-03-29 14:32:42 -07:00
Frank Smit
fa0bd49575 Do not nest the fist list in a table of contents.
If the first header of a document is a level three header the first list
is nested two times. To prevent this an offset if set when the first
header is found and after that the level is changed to (level - offset).
2012-03-29 23:08:44 +02:00
Vicent Martí
12cdf8e612 Properly check for closing HTML blocks 2012-03-29 02:22:11 +02:00
Vicent Martí
4c43f75a62 Fix blockquotes nested inside of paragraphs 2012-03-29 01:29:30 +02:00
Vicent Martí
690ec8748a Merge pull request #98 from SRombauts/master
Fix for building with Visual Studio
2012-03-25 14:58:49 -07:00
Sebastien Rombauts
37712fd083 Fix for building with Visual Studio 2008 Express
Correct the following link errors:
markdown.obj : error LNK2019: unresolved external symbol _strncasecmp referenced in function _find_block_tag
autolink.obj : error LNK2001: unresolved external symbol _strncasecmp
html_smartypants.obj : error LNK2019: unresolved external symbol _snprintf referenced in function _smartypants_quotes

I needed to add 1 define in 3 files, betweend #if defined(_WIN32) guards :
- #define strncasecmp _strnicmp
- #define snprintf _snprintf
2012-03-25 14:57:52 +02:00
Vicent Martí
975df6267c Merge pull request #93 from gregleaver/issue62
TOC should only show link name, fixes #62.
2012-03-03 13:29:09 -08:00
Greg Leaver
76a86ff546 TOC should only show link name, fixes #62. 2012-03-03 16:13:14 -05:00
Vicent Martí
3361ebcd22 Fix #91: hanging whitespace breaks tables 2012-02-20 21:17:25 +01:00
Vicent Martí
b380583a4c Merge pull request #90 from gregleaver/toc_escaping
Escape html inside table of contents.
2012-02-15 06:54:33 -08:00
Greg Leaver
0f57962b82 Escape html inside table of contents. 2012-02-14 21:40:25 -05:00
Vicent Martí
1c2ac9e094 Fix segfault on empty link refs 2012-02-05 18:05:34 +01:00
Vicent Martí
86a4790c47 Merge pull request #89 from andre-d/requirespace
Require a space for link titles
2012-01-27 11:27:53 -08:00
Andre D
05f958dae6 Require a space for link titles 2012-01-27 11:47:24 -05:00
Vicent Martí
dde042f364 Merge pull request #88 from andre-d/fix29
Escaping will not happen if the escape character is at the end
2012-01-25 16:34:54 -08:00
Andre D
b8be4a8a35 Escaping will not happen if the escape character is at the end 2012-01-25 15:08:11 -05:00
Vicent Martí
519e355637 Skip UTF-8 BOM at the start of the document 2011-12-21 01:49:31 +01:00
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