Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 1, 2015
  1. @JordanMilne

    Bump version to 1.4.0

    JordanMilne authored
  2. @JordanMilne
  3. @JordanMilne

    Re-enable bare email autolinks

    JordanMilne authored
    The underlying rewind bug that made me disable this is fixed
Commits on May 13, 2015
  1. @JordanMilne

    Handle r/foo and u/bar links with no leading slash

    JordanMilne authored
    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.
  2. @JordanMilne

    Fix encoding for numeric entities with values < 12

    JordanMilne authored
    Also test entities that should work as well as stuff that
    should be filtered (whoops!)
Commits on May 11, 2015
  1. @JordanMilne

    Normalize `x` in hex entities to lowercase

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

    Add tools for fuzzing snudown

    JordanMilne authored
    Automagically takes our testcases, plugs them into American Fuzzy
    Lop, then makes sure that they output valid HTML. Neato.
  2. @JordanMilne

    Don't autolink a bare URL if it's part of a previous inline

    JordanMilne authored
    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
  3. @JordanMilne
  4. @JordanMilne

    Fix handling of raw control characters in autolinked URLs

    JordanMilne authored
    Control characters == 2 in the escape table, don't skip by those!
Commits on Feb 25, 2015
  1. @spladug

    Bump to version 1.3.2.

    spladug authored
  2. @JordanMilne

    Named HTML entities can be alphanumeric

    JordanMilne authored
    This fixes entities like `&frac12;`
  3. @spladug

    Bump to version 1.3.1.

    spladug authored
  4. @JordanMilne

    Add a missing chunk of entities to html_entities.gperf

    JordanMilne authored
    QtCreator probably stole them with its strange touchpad gestures. Oops!
  5. @spladug

    Bump to version 1.3.0.

    spladug authored
  6. @JordanMilne
  7. @JordanMilne

    Add tests for entities

    JordanMilne authored
  8. @JordanMilne

    Fix numeric and named entity validation

    JordanMilne authored
    We now escape entities that we're sure aren't valid, or don't
    match a whitelist of named entities (if applicable.)
Commits on Sep 21, 2014
  1. @spladug

    Bump to version 1.2.0.

    spladug authored
  2. @JordanMilne @spladug

    Guard against table markdown bombs

    JordanMilne authored spladug committed
  3. @JordanMilne @spladug

    Don't autolink bare email addresses

    JordanMilne authored spladug committed
    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.
  4. @JordanMilne @spladug
Commits on Sep 11, 2014
  1. @JordanMilne

    Fix various rewinds when embedded NULs are involved

    JordanMilne authored
    `strchr("foo", '\0')` returns non-null, who knew.
Commits on Apr 2, 2014
  1. @spladug

    Bump to version 1.1.6.

    spladug authored
  2. @andre-d @spladug
Commits on Sep 1, 2013
  1. @spladug
Commits on Jul 15, 2013
  1. @spladug

    Merge pull request #53 from lebeauc/master

    spladug authored
    Add ts3server as a valid link scheme
Commits on Jun 10, 2013
  1. @lebeauc
Commits on May 22, 2013
  1. @spladug

    Bump to version 1.1.5.

    spladug authored
  2. @spladug
  3. @andre-d @spladug

    Allow autolinking to extended paths.

    andre-d authored spladug committed
Commits on Mar 23, 2013
  1. @spladug

    Merge pull request #50 from sakjur/master

    spladug authored
    Update reference to Sundown
  2. @sakjur
Commits on Feb 26, 2013
  1. @spladug

    Bump to version 1.1.4

    spladug authored
  2. @rram @spladug

    Don't autolink /R/subreddit.

    rram authored spladug committed
Something went wrong with that request. Please try again.