Xavier Mendez
73d8a1120a
More fixes
2014-09-03 10:39:33 +02:00
Xavier Mendez
a6b90a7cf7
Import improvements from Lanli (and more things)
2014-09-02 19:21:58 +02:00
Xavier Mendez
c6238419ff
Merge pull request #110 from jmendeth/moar-bugfixes
...
Moar bugfixes
2014-08-26 16:45:58 +02:00
Xavier Mendez
62908524c5
document: Simplify finding of HTML block end tag
2014-08-17 22:49:41 +02:00
Xavier Mendez
18df3a98ca
document: Never omit the newline on sublists
...
See https://github.com/hoedown/hoedown/issues/102#issuecomment-52290938 for discussion.
2014-08-15 20:24:33 +02:00
Xavier Mendez
d59438f36c
document: Optimize replace_spacing to pregrow output buffer
2014-08-14 23:36:51 +02:00
Xavier Mendez
83df167ea2
hoedown: Correct flag description
2014-08-14 23:31:40 +02:00
Xavier Mendez
514e80acb8
document: Make replace_spacing collapse newlines
2014-08-14 23:14:55 +02:00
Xavier Mendez
f81eac9e1e
document: Better fix for #84
...
Made stricter: now it'll only reject the codefence if the delimiter
that was used to start it is found three consecutive times.
2014-08-14 22:04:57 +02:00
Xavier Mendez
c56d635afd
document: Use find_emph_char for links ( fixes #106 )
...
As long as there's a valid matching ] at the end, and there's no
codespan inside the link, things should render exactly the same
as before. Please review this.
2014-08-14 20:55:16 +02:00
Xavier Mendez
7dce1ac18a
document: Simplify char_link(...)
...
(This is to prepare for next commit)
2014-08-14 20:42:28 +02:00
Xavier Mendez
fbe1448b1f
document: Allow images to be escaped ( fixes #108 )
2014-08-14 18:03:54 +02:00
Xavier Mendez
a87d39e0c8
document: Allow footnotes to be parsed when link == NULL ( fixes #66 )
2014-08-13 11:33:48 +02:00
Xavier Mendez
17a6992dba
document: Move list typechecking logic to right location ( fixes #102 )
2014-08-13 11:30:22 +02:00
Xavier Mendez
646c8de9d2
document: Avoid parsing codespan as a fence ( fixes #84 )
2014-08-13 11:28:13 +02:00
Devin Torres
6590101008
Merge pull request #97 from uranusjr/fix_89-markup-escape
...
Fix markup characters escaping
2014-08-13 00:26:32 -05:00
Devin Torres
e2d34bba00
Merge pull request #96 from jmendeth/parse-inline
...
Add hoedown_document_render_inline
2014-08-13 00:15:22 -05:00
Tzu-ping Chung
efc8974c73
Use find_emph_char to find delims in char_quote
2014-08-13 10:38:11 +08:00
Tzu-ping Chung
492e3d14de
find_emph_char should starts from the beginning
...
This fixes bugs for edge cases of pattern:
opening backtick ending [any] backtick [any] ending
Examples: *`**`* and __`__`__
Range handling in 48a19b3
and e7bcbe3
is also changed to match the
correct behavior.
2014-08-11 03:38:27 +08:00
Tzu-ping Chung
e7bcbe3fa6
Use find_emph_char for table column parsing
...
Fix #77
2014-08-11 03:24:54 +08:00
Tzu-ping Chung
48a19b31bf
Input of find_emph_char should INCLUDE opening
...
This fixes super^(`)`)
2014-08-11 03:06:25 +08:00
Tzu-ping Chung
60d63a1920
Make comments in char_emphasis up-to-date
2014-08-11 00:57:53 +08:00
Tzu-ping Chung
81d5932b67
Reusing find_emph_char logic in char_superscript
2014-08-11 00:53:42 +08:00
Tzu-ping Chung
79010cca84
Add comments
2014-08-11 00:52:06 +08:00
Tzu-ping Chung
0cd4dbd41c
Need to handle backticks in find_emph_char
2014-08-11 00:30:35 +08:00
Tzu-ping Chung
e3cbd4be4e
Make return statement of is_escaped more succinct
2014-08-10 23:11:51 +08:00
Xavier Mendez
9b38842cfa
document: Add render_inline(...)
2014-08-10 00:26:35 +02:00
Tzu-ping Chung
753e4d892c
Fix superscript group escaping
2014-08-10 03:10:52 +08:00
Tzu-ping Chung
64a4267429
Fix escaping in char_link and add tests
...
Same logic as 2301e4c
2014-08-10 02:48:35 +08:00
Tzu-ping Chung
0c766248c9
Fix incorrect file name
2014-08-10 02:43:59 +08:00
Tzu-ping Chung
4a2c962369
Add test cases for escape characters
2014-08-10 02:16:34 +08:00
Tzu-ping Chung
2301e4caa2
Better logic to handle backslashes
...
is_escaped actually counts backslashes instead of looking back one
character to determine whether a character is escaped. This handles
inputs like *Foo\\* correctly (as `<p><em>Foo\<em></p>`; would be
`<p>Foo\*</p>` previously).
2014-08-10 02:03:54 +08:00
Tzu-ping Chung
c854481092
Fix incorrect escaping logic in find_emph_char
2014-08-09 20:45:32 +08:00
Tzu-ping Chung
c5f4c35541
Add = and " to escapable character list
2014-08-09 20:35:05 +08:00
Devin Torres
34d28b5f1a
Merge pull request #91 from jmendeth/small-bugfixes
...
Small bugfixes
2014-08-07 15:02:15 -05:00
Devin Torres
e05c607bb4
Merge pull request #95 from uranusjr/unique-footnote
...
Only render first footnote reflink occurrence to avoid duplicate HTML IDs
2014-08-07 14:00:50 -05:00
Tzu-ping Chung
361e514436
Only render first footnote reflink occurrence
...
Fix #92
2014-08-07 16:02:37 +08:00
Xavier Mendez
b77fe624a9
Allow hash links in safe mode
2014-08-04 12:03:12 +02:00
Xavier Mendez
c7af7d235a
Make VS2013 happy ( fixes #90 )
2014-07-31 14:59:02 +02:00
Xavier Mendez
0653bd8d07
html: Remove EXPAND_TABS ( fixes #85 )
...
Useless flag inherited from Sundown. Has no effect since
tabs are expanded on preprocessing before even rendering.
2014-07-31 14:54:53 +02:00
Xavier Mendez
e76c6a8477
Makefile: LDFLAGS need to be after the source files
2014-07-31 14:48:40 +02:00
Xavier Mendez
4deef79ce6
Allow indenting next bullets with less spaces ( fixes #34 )
2014-07-31 14:47:45 +02:00
Xavier Mendez
1e09134133
Use the correct term in comments (space vs spacing vs whitespace)
2014-07-31 14:43:49 +02:00
Xavier Mendez
82744d9c73
Let char_quote() parse what is inside ( fixes #79 )
2014-07-31 14:30:14 +02:00
Devin Torres
0610117f44
Don't use C99 features in header files
2014-06-10 23:01:30 -05:00
Devin Torres
e78e6edd36
Don't depend on implicit hoedown_buffer initialization
2014-06-10 22:59:47 -05:00
Devin Torres
cfea09a7f0
Merge pull request #76 from jmendeth/memory-allocation
...
Add custom memory functions
2014-05-13 09:33:44 -05:00
Xavier Mendez
c4394a70a0
Allow custom memory allocation callbacks on buffer
...
Forked from txdv@memfuncs4, see #73 for discussion.
2014-05-12 22:29:46 +02:00
Xavier Mendez
af11a53df4
Merge pull request #72 from jmendeth/small-fixes
...
Small fixes
2014-05-11 10:17:32 +02:00
Xavier Mendez
523118e3a5
Revert .gitignore
...
This reverts commit b751c17089
.
2014-04-17 13:24:11 +02:00