commit
278702f097
4 changed files with 8 additions and 8 deletions
|
@ -141,7 +141,7 @@ print_help(const char *basename) {
|
|||
"Options are processed in order, so in case of contradictory options the last specified stands.\n\n");
|
||||
|
||||
printf("When FILE is '-', read standard input. If no FILE was given, read standard input. Use '--' to signal end of option parsing. "
|
||||
"Exit status is 0 if no errors occured, 1 with option parsing errors, 4 with memory allocation errors or 5 with I/O errors.\n\n");
|
||||
"Exit status is 0 if no errors occurred, 1 with option parsing errors, 4 with memory allocation errors or 5 with I/O errors.\n\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ print_help(const char *basename) {
|
|||
printf("Options are processed in order, so in case of contradictory options the last specified stands.\n\n");
|
||||
|
||||
printf("When FILE is '-', read standard input. If no FILE was given, read standard input. Use '--' to signal end of option parsing. "
|
||||
"Exit status is 0 if no errors occured, 1 with option parsing errors, 4 with memory allocation errors or 5 with I/O errors.\n\n");
|
||||
"Exit status is 0 if no errors occurred, 1 with option parsing errors, 4 with memory allocation errors or 5 with I/O errors.\n\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ enum markdown_char_t {
|
|||
MD_CHAR_LINK,
|
||||
MD_CHAR_LANGLE,
|
||||
MD_CHAR_ESCAPE,
|
||||
MD_CHAR_ENTITITY,
|
||||
MD_CHAR_ENTITY,
|
||||
MD_CHAR_AUTOLINK_URL,
|
||||
MD_CHAR_AUTOLINK_EMAIL,
|
||||
MD_CHAR_AUTOLINK_WWW,
|
||||
|
@ -449,7 +449,7 @@ tag_length(uint8_t *data, size_t size, hoedown_autolink_type *autolink)
|
|||
*autolink = HOEDOWN_AUTOLINK_NONE;
|
||||
}
|
||||
|
||||
/* looking for sometinhg looking like a tag end */
|
||||
/* looking for something looking like a tag end */
|
||||
while (i < size && data[i] != '>') i++;
|
||||
if (i >= size) return 0;
|
||||
return i + 1;
|
||||
|
@ -735,7 +735,7 @@ parse_math(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_t offs
|
|||
hoedown_buffer text = { data + delimsz, i - delimsz, 0, 0, NULL, NULL, NULL };
|
||||
|
||||
/* if this is a $$ and MATH_EXPLICIT is not active,
|
||||
* guess wether displaymode should be enabled from the context */
|
||||
* guess whether displaymode should be enabled from the context */
|
||||
i += delimsz;
|
||||
if (delimsz == 2 && !(doc->ext_flags & HOEDOWN_EXT_MATH_EXPLICIT))
|
||||
displaymode = is_empty_all(data - offset, offset) && is_empty_all(data + i, size - i);
|
||||
|
@ -2491,7 +2491,7 @@ is_footnote(const uint8_t *data, size_t beg, size_t end, size_t *last, struct fo
|
|||
|
||||
start = i;
|
||||
|
||||
/* process lines similiar to a list item */
|
||||
/* process lines similar to a list item */
|
||||
while (i < end) {
|
||||
while (i < end && data[i] != '\n' && data[i] != '\r') i++;
|
||||
|
||||
|
@ -2738,7 +2738,7 @@ hoedown_document_new(
|
|||
|
||||
doc->active_char['<'] = MD_CHAR_LANGLE;
|
||||
doc->active_char['\\'] = MD_CHAR_ESCAPE;
|
||||
doc->active_char['&'] = MD_CHAR_ENTITITY;
|
||||
doc->active_char['&'] = MD_CHAR_ENTITY;
|
||||
|
||||
if (extensions & HOEDOWN_EXT_AUTOLINK) {
|
||||
doc->active_char[':'] = MD_CHAR_AUTOLINK_URL;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* - The characters which are *not* safe to be in
|
||||
* an URL because they are RESERVED characters.
|
||||
*
|
||||
* We asume (lazily) that any RESERVED char that
|
||||
* We assume (lazily) that any RESERVED char that
|
||||
* appears inside an URL is actually meant to
|
||||
* have its native function (i.e. as an URL
|
||||
* component/separator) and hence needs no escaping.
|
||||
|
|
Loading…
Reference in a new issue