Merge branch 'master' into small-fixes
This commit is contained in:
commit
9b29045c11
3 changed files with 9 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ hoedown.exp
|
||||||
hoedown.lib
|
hoedown.lib
|
||||||
smartypants
|
smartypants
|
||||||
libhoedown.so*
|
libhoedown.so*
|
||||||
|
.DS_Store
|
||||||
|
|
|
@ -32,10 +32,14 @@ Features
|
||||||
|
|
||||||
`Hoedown` has been extensively security audited, and includes protection against
|
`Hoedown` has been extensively security audited, and includes protection against
|
||||||
all possible DOS attacks (stack overflows, out of memory situations, malformed
|
all possible DOS attacks (stack overflows, out of memory situations, malformed
|
||||||
Markdown syntax...) and against client attacks through malicious embedded HTML.
|
Markdown syntax...).
|
||||||
|
|
||||||
We've worked very hard to make `Hoedown` never leak or crash under *any* input.
|
We've worked very hard to make `Hoedown` never leak or crash under *any* input.
|
||||||
|
|
||||||
|
**Warning**: `Hoedown` doesn't validate or post-process the HTML in Markdown documents.
|
||||||
|
Unless you use `HTML_ESCAPE` or `HTML_SKIP`, you should strongly consider using a
|
||||||
|
good post-processor in conjunction with Hoedown to prevent client-side attacks.
|
||||||
|
|
||||||
* **Customizable renderers**
|
* **Customizable renderers**
|
||||||
|
|
||||||
`Hoedown` is not stuck with XHTML output: the Markdown parser of the library
|
`Hoedown` is not stuck with XHTML output: the Markdown parser of the library
|
||||||
|
@ -95,4 +99,6 @@ Just typing `make` will build `Hoedown` into a dynamic library and create the `h
|
||||||
and `smartypants` executables, which are command-line tools to render Markdown to HTML
|
and `smartypants` executables, which are command-line tools to render Markdown to HTML
|
||||||
and perform SmartyPants, respectively.
|
and perform SmartyPants, respectively.
|
||||||
|
|
||||||
|
If you are using [CocoaPods](http://cocoapods.org), just add the line `pod 'hoedown'` to your Podfile and call `pod install`.
|
||||||
|
|
||||||
Or, if you prefer, you can just throw the files at `src` into your project.
|
Or, if you prefer, you can just throw the files at `src` into your project.
|
||||||
|
|
|
@ -1356,7 +1356,7 @@ is_codefence(uint8_t *data, size_t size, size_t *width, uint8_t *chr)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* expects single line, checks if it's a codefence and extracts language */
|
/* expects single line, checks if it's a codefence and extracts language */
|
||||||
static int
|
static size_t
|
||||||
parse_codefence(uint8_t *data, size_t size, hoedown_buffer *lang, size_t *width, uint8_t *chr)
|
parse_codefence(uint8_t *data, size_t size, hoedown_buffer *lang, size_t *width, uint8_t *chr)
|
||||||
{
|
{
|
||||||
size_t i, w, lang_start;
|
size_t i, w, lang_start;
|
||||||
|
|
Loading…
Reference in a new issue