Commit graph

539 commits

Author SHA1 Message Date
Dmitriy Kiriyenko
d32be1c697 Add option to ignore usual indented code blocks
Markdown converts text with four spaces at the front of each line to
code blocks. Of course we should support that, but when using fenced
code blocks, indented one can even be harmful. There should be a way to
turn them off.

This patch adds option to disable indented code blocks.
2013-09-19 11:37:20 -05:00
Matt Rogers
9d39c07cb4 Remove unused C macros 2013-09-19 11:25:36 -05:00
Ryan McGeary
89c73d27bf Added support for org-table syntax
This just adds support for using a plus (+) as an intersection character
instead of requiring pipes (|). The emacs org-mode table syntax
automatically manages ascii tables, but uses pluses for line
intersections.
2013-09-19 11:09:14 -05:00
Mike Morearty
8d30051774 Fix SmartyPants handling of single quotes 2013-09-19 11:04:33 -05:00
Balazs Nagy
92c9d20b0a Align td and th with css instead of align property
When you align tables with css, <td align="..."> gets overridden.
Using inline styles keeps alignment no matter what CSS contains.
2013-09-18 17:57:52 -05:00
Ben Dolman
0f1b2a017f Add MultiMarkdown footnotes extension 2013-09-18 17:22:09 -05:00
Devin Torres
5c4d75bccb Use the system specified CC by default 2013-09-18 16:37:06 -05:00
Devin Torres
f9227bba79 Import the official Markdown 1.0.3 test suite 2013-09-18 16:36:04 -05:00
Mike Buland
febd3269a3 Removed useless -Wl from .so linking command. 2013-09-18 13:13:11 -05:00
Devin Torres
aa43a77283 Revert "Let the world know that Sundown is deprecated"
This reverts commit 37728fb2d7.
2013-09-18 13:09:50 -05:00
Vicent Martí
37728fb2d7 Let the world know that Sundown is deprecated 2012-11-29 04:59:48 -08:00
Vicent Marti
fc97fc37de Always verify the end of a domain 2012-10-22 17:34:12 +02:00
Vicent Marti
bc68d59041 Gah. Stupid typo. 2012-10-19 18:13:51 +02:00
Vicent Marti
0e7d0cc653 Better NO_INTRA_EMPHASIS logic 2012-10-11 13:25:03 +02:00
Vicent Marti
2bb12820b1 Better name for the offset args 2012-10-10 15:41:21 +02:00
Vicent Martí
b6b58da3ff Hey I'm @vmg 2012-08-02 02:27:07 +03:00
Vicent Marti
11d2add5b4 Bring back changes from Rinku 2012-07-08 14:42:26 +02:00
Vicent Martí
c744346e50 Merge pull request #110 from ckolumbus/ckol-bugfix
BUG FIX: va_list handling for visual studio fixed
2012-05-02 14:44:22 -07:00
Chris
940612e6cb BUG FIX: va_list handling for visual studio fixed 2012-05-02 21:22:50 +02:00
Vicent Martí
e0f0d88bc3 Fix segfault when parsing syntax 2012-04-22 15:02:45 -07:00
Vicent Martí
3027e7ab3f Fix infinite loop when parsing strikethroughs 2012-04-13 01:30:48 +02:00
Vicent Martí
5c64c8ba7c Properly identify opening code fences 2012-04-12 18:08:37 +02:00
Vicent Martí
eddaf2b87d Oops 2012-04-12 16:41:33 +02:00
Vicent Martí
634f45badd Bump version number 2012-04-12 16:31:44 +02:00
Vicent Martí
2607a45c03 Fix the extensions enum 2012-04-12 15:33:28 +02:00
Vicent Martí
38261808f9 Add MKDEXT_LAX_SPACING extension 2012-04-12 06:27:42 +02:00
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