Permalink
Commits on Jun 1, 2015
  1. Bump version to 1.4.0

    JordanMilne committed Jun 1, 2015
  2. Re-enable bare email autolinks

    The underlying rewind bug that made me disable this is fixed
    JordanMilne committed Jun 1, 2015
Commits on May 13, 2015
  1. Handle r/foo and u/bar links with no leading slash

    This means we now do a lookbehind from the slash after `[ur]`,
    then do a lookahead to validate the subreddit / user name.
    
    Also, add add proper lookbehinds to detect escaped legacy shortlinks,
    
    `max_lookbehind` is how far back we can look,
    `max_rewind` is how back we can touch.
    
    This helps us distinguish `\\/r/foo` from `\/r/foo`, and `r/foo` when
    looking back from the second forward slash.
    JordanMilne committed Apr 28, 2015
  2. Fix encoding for numeric entities with values < 12

    Also test entities that should work as well as stuff that
    should be filtered (whoops!)
    JordanMilne committed May 12, 2015
Commits on May 11, 2015
  1. Normalize `x` in hex entities to lowercase

    As it turns out, many XML parsers (souptest's included) *really*
    don't like uppercase `x`s there. `&#X3E` == "invalid decimal value"!
    JordanMilne committed May 11, 2015
Commits on Apr 16, 2015
  1. Add tools for fuzzing snudown

    Automagically takes our testcases, plugs them into American Fuzzy
    Lop, then makes sure that they output valid HTML. Neato.
    JordanMilne committed Apr 12, 2015
  2. Don't autolink a bare URL if it's part of a previous inline

    Previously it was possible to get the renderer to truncate the
    output at a point that would cause it out output unbalanced tags,
    for ex.
    
    `/r/irc://foo.bar` -> `<a href="/r/irc">/r/irc<<a href="irc://foo[…]`
    
    Not great. This commit attempts to mitigate that by tracking the end
    of the last inline and making sure rewinds don't run past it. This is
    similar to the approach taken by @vmg in rinku:
    
    vmg/rinku@dc685c1
    JordanMilne committed Sep 25, 2014
  3. Fix handling of raw control characters in autolinked URLs

    Control characters == 2 in the escape table, don't skip by those!
    JordanMilne committed Mar 8, 2015
Commits on Feb 25, 2015
  1. Bump to version 1.3.2.

    spladug committed Feb 25, 2015
  2. Named HTML entities can be alphanumeric

    This fixes entities like `&frac12;`
    JordanMilne committed Feb 25, 2015
  3. Bump to version 1.3.1.

    spladug committed Feb 25, 2015
  4. Add a missing chunk of entities to html_entities.gperf

    QtCreator probably stole them with its strange touchpad gestures. Oops!
    JordanMilne committed Feb 25, 2015
  5. Bump to version 1.3.0.

    spladug committed Feb 25, 2015
  6. Add tests for entities

    JordanMilne committed Feb 24, 2015
  7. Fix numeric and named entity validation

    We now escape entities that we're sure aren't valid, or don't
    match a whitelist of named entities (if applicable.)
    JordanMilne committed Feb 22, 2015
Commits on Sep 21, 2014
  1. Bump to version 1.2.0.

    spladug committed Sep 20, 2014
  2. Don't autolink bare email addresses

    This fixes an issue where the beginning of an email would have its
    underscores treated as emphasis delimiters, then would decide it
    was an email when it hit the '@'.
    
    Since there's no easy way for the rewind code to account for that,
    and it can rewind back into the middle of a tag, we just don't
    touch bare email addresses.
    JordanMilne committed with spladug Sep 11, 2014
Commits on Sep 11, 2014
  1. Fix various rewinds when embedded NULs are involved

    `strchr("foo", '\0')` returns non-null, who knew.
    JordanMilne committed Sep 8, 2014
Commits on Apr 2, 2014
  1. Bump to version 1.1.6.

    spladug committed Apr 2, 2014
Commits on Sep 1, 2013
  1. Update valid_uris_count for autolinking.

    Fixes #54.
    spladug committed Sep 1, 2013
Commits on Jul 15, 2013
  1. Merge pull request #53 from lebeauc/master

    Add ts3server as a valid link scheme
    spladug committed Jul 15, 2013
Commits on Jun 10, 2013
Commits on May 22, 2013
  1. Bump to version 1.1.5.

    spladug committed May 22, 2013
Commits on Mar 23, 2013
  1. Merge pull request #50 from sakjur/master

    Update reference to Sundown
    spladug committed Mar 23, 2013
Commits on Feb 26, 2013
  1. Bump to version 1.1.4

    spladug committed Feb 26, 2013
  2. Don't autolink /R/subreddit.

    rram committed with spladug Feb 26, 2013