Commit graph

441 commits

Author SHA1 Message Date
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
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
Xavier Mendez
8ab482af91 html: Remove SKIP_{STYLE,IMAGES,LINKS} flags (see #62)
Even with these flags active, injections and XSS are still easily possible.

Providing full attribute checking, HTML validation, ... is out of the
scope of Hoedown, therefore this "security" features only create
a false sense of security rather than actually providing it.
2014-04-17 12:53:55 +02:00
Xavier Mendez
9b29045c11 Merge branch 'master' into small-fixes 2014-04-09 13:46:30 +02:00
Xavier Mendez
08b0f2c3c7 Simplify some code regarding fenced blocks 2014-04-09 13:45:17 +02:00
Xavier Mendez
f62c5a79bb Remove wrong grow()s in escape
They assume the buffer is empty, which is wrong.

Even if they took that into account, these small grows
are useless most of the time (the unit is big).
2014-04-09 13:18:07 +02:00
Xavier Mendez
238c4d57cc Talk about client-side attacks 2014-04-07 17:20:12 +02:00
Devin Torres
4ad239da28 Merge pull request #71 from clemensg/gitignore_mac
Improve hoedowns gitignore file for Mac users
2014-04-06 15:48:00 -05:00
Clemens Gruber
b751c17089 Improve hoedowns gitignore file for Mac users. 2014-04-06 22:18:08 +02:00
Xavier Mendez
c69b7fa409 Merge pull request #70 from clemensg/fix_conversion_loss_warning
Fix implicit conversion loss compiler warning in parse_codefence
2014-04-05 17:19:49 +02:00
Clemens Gruber
50564c5b9e Fix implicit conversion loss compiler warning in parse_codefence 2014-04-05 17:11:37 +02:00
Devin Torres
a4a1f64e0a Merge pull request #67 from clemensg/master
Add a note about CocoaPods to the README
2014-03-29 13:46:08 -05:00
Clemens Gruber
b0290abb67 Update README.md
Add a note about installing hoedown via CocoaPods.
2014-03-29 17:15:58 +01:00
Xavier Mendez
4d4cac2313 README: Remove incorrect statement
Anything can run out of memory, it's a normal thing.
What's important is to handle things correctly when
you run out of memory (i.e. don't crash).

Saying Hoedown will never run out of memory is
like saying dd-rescue will never get I/O errors.

I think the author meant "memory leak"
rather than "run out of memory".
2014-03-29 14:17:24 +01:00
Xavier Mendez
cc768b16e5 Remove useless HTML_TOC flag
It's redundant. A zero `nesting_level` already means "disable TOC"
and a nonzero `nesting_level` enables it.

Having a TOC flag only complicates the code unnecessarily.
2014-03-29 14:10:08 +01:00
Devin Torres
d7de540376 Merge pull request #65 from jmendeth/option-parsing-final
Improve executables (mainly option parsing)
2014-03-25 12:58:13 -05:00
Xavier Mendez
b6f7a30cdb Small correction 2014-03-23 21:06:01 +01:00
Xavier Mendez
ea8446f6b8 Rename examples/ to bin/ 2014-03-23 20:17:02 +01:00
Xavier Mendez
51291eb3d3 Add option parsing to smartypants.c too 2014-03-23 20:14:19 +01:00
Xavier Mendez
77392bf350 Rewrite hoedown.c (option parsing and lots of features :) 2014-03-23 19:58:47 +01:00
Xavier Mendez
8bc7aadbff Correct extension category 2014-03-23 19:56:05 +01:00
Xavier Mendez
6e7624195a correct small typo in previous PR
Signed-off-by: Xavier Mendez <jmendeth@gmail.com>
2014-03-04 22:48:58 +01:00
Devin Torres
f51f204f6f Merge pull request #57 from jmendeth/organize-extensions
Organize flags
2014-02-13 15:58:46 -06:00
Xavier Mendez
4cb9c5b9e3 "Expand" table alignment values 2014-02-13 21:30:50 +01:00