Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 11, 2015
  1. @rtfb

    Add Go 1.4 to Travis config

    rtfb authored
  2. @rtfb

    Simplify isRelativeLink() a bit

    rtfb authored
Commits on Apr 9, 2015
  1. @rtfb

    Merge pull request #152 from elian0211/about_links

    rtfb authored
    update about links
Commits on Apr 5, 2015
  1. @rtfb

    Merge pull request #159 from rtfb/sequential-footnotes

    rtfb authored
    Fix recognition of consecutive footnotes
Commits on Apr 3, 2015
  1. @rtfb

    Fix recognition of consecutive footnotes

    rtfb authored
    The second footnote was treated as if the pair of them were a reference
    style link, without checking if the second bit is another footnote.
    
    Fixes issue 158.
Commits on Mar 24, 2015
  1. @rtfb

    Merge pull request #157 from dchest/reflib

    rtfb authored
    Renaming of upskirt
  2. @dchest

    README: rename libupskirt to Sundown.

    dchest authored
    The original upskirt library by Natacha Porté has been renamed to
    libsoldout, while the fork of it that was located at tanoku/upskirt has
    been renamed to Sundown and moved to vmg/sundown. Since Blackfriday has
    been started as a translation of tanoku/upskirt, rename its mention in
    README to Sundown.
  3. @dchest
Commits on Mar 15, 2015
  1. @rtfb

    Merge pull request #155 from beyang/master

    rtfb authored
    add rel="noreferrer" option
Commits on Mar 14, 2015
  1. @beyang

    add rel="noreferrer" option

    beyang authored
Commits on Feb 25, 2015
  1. @elian0211

    update func isSafeLink

    elian0211 authored
Commits on Feb 20, 2015
  1. @elian0211

    update about links

    elian0211 authored
    when link to current directory or parent directory
Commits on Feb 11, 2015
  1. @rtfb

    Merge pull request #149 from tw4452852/fenced_code

    rtfb authored
    Delete unnecessary copy of input when enable fenced code extension
  2. @tw4452852

    Delete unnecessary copy of input when enable fenced code extension

    tw4452852 authored
    Copy of input waste time and memory.
    
    Signed-off-by: Tw <tw19881113@gmail.com>
Commits on Feb 10, 2015
  1. @rtfb

    Merge pull request #145 from eparis/license

    rtfb authored
    Move the license info from README to LICENSE file
Commits on Feb 9, 2015
  1. @eparis

    Move the license info from README to LICENSE file

    eparis authored
    It's pretty standard to have a license file, and some projects require
    them before your code can be used in their code.  Move the license to
    its own file.
Commits on Jan 27, 2015
  1. @rtfb

    Merge pull request #142 from anthonyfok/avoid-converting-dates-into-f…

    rtfb authored
    …ractions
    
    Avoid converting dates into fractions
Commits on Jan 24, 2015
  1. @anthonyfok

    Avoid converting dates into fractions

    anthonyfok authored
    So that dates like 1/2/2005 and 2005/3/4 stay the way it is
    without turning into ½/2005 and 2005/¾.
    
    See http://discuss.gohugo.io/t/any-way-to-disable-smart-fractions/328
    for discussions.
Commits on Jan 12, 2015
  1. @rtfb

    Merge pull request #140 from russross/update-import-path/sanitized_an…

    rtfb authored
    …chor_name
    
    Update import path of sanitized_anchor_name.
Commits on Jan 11, 2015
  1. @shurcooL

    Update import path of sanitized_anchor_name.

    shurcooL authored
    It has moved into a smaller standalone repo.
    Closes #139.
Commits on Dec 29, 2014
  1. @rtfb

    Merge pull request #138 from KenjiTakahashi/emphasis_link

    rtfb authored
    Fix for #19 + some tests for emphasis with links.
Commits on Dec 28, 2014
  1. @KenjiTakahashi
  2. @KenjiTakahashi
Commits on Nov 30, 2014
  1. @rtfb

    Merge pull request #131 from russross/minor-cleanup

    rtfb authored
    Minor cleanup.
  2. @shurcooL

    Minor cleanup.

    shurcooL authored
    Apply gofmt on html.go.
    Apply goimports-compatible formatting on block.go (space between standard and third party imports).
    Move Travis build status image in a more pleasing, common location.
    Remove "Markdown pretty-printer output engine" from TODO steps; this is already done in markdownfmt.
    Remove unneeded trailing whitespace in README.
Commits on Nov 28, 2014
  1. @rtfb

    Merge pull request #128 from bjornerik/angled-quotes

    rtfb authored
    Add support for angled, double quotes
Commits on Nov 25, 2014
  1. @rtfb

    Merge pull request #130 from shurcooL/master

    rtfb authored
    Fix test case.
  2. @shurcooL

    Fix test case.

    shurcooL authored
    Fix a minor issue in expected anchor after recent PR. The tests were written before the improvement that squashes non-alphanumeric characters into a single dash, and does not include dashes at the beginning and end. This updates the test case to match that behavior so that tests pass and Travis is green.
Commits on Nov 24, 2014
  1. @rtfb

    Merge pull request #129 from halostatue/header-prefixes-and-suffixes

    rtfb authored
    Allow configurable header ID prefix/suffixes.
  2. @rtfb

    Merge pull request #126 from halostatue/generate-unique-header-ids

    rtfb authored
    Prevent header collisions on generation.
  3. @halostatue

    Allow configurable header ID prefix/suffixes.

    halostatue authored
    This is specifically driven by the Hugo usecase where multiple documents
    are often rendered into the same ultimate HTML page.
    
    When a header ID is written to the output HTML format (either through
    `HTML_TOC`, `EXTENSION_HEADER_IDS`, or `EXTENSION_AUTO_HEADER_IDS`), it
    is possible that multiple documents will hvae identical header IDs. To
    permit validation to pass, it is useful to have a per-document prefix or
    suffix (in our case, an MD5 of the content filename, and we will be
    using it as a suffix).
    
    That is, two documents (`A` and `B`) that have the same header ID (`#
    Reason {#reason}`), will end up having an actual header ID of the form
    `#reason-DOCID` (e.g., `#reason-A`, `#reason-B`) with these HTML
    parameters.
    
    This is built on top of #126 (more intelligent collision detection for
    `EXTENSION_AUTO_HEADER_IDS`).
  4. @halostatue

    Prevent generated header collisions, less naively.

    halostatue authored
    > This is a rework of an earlier version of this code.
    
    The automatic header ID generation code submitted in #125 has a subtle
    bug where it will use the same ID for multiple headers with identical
    text. In the case below, all the headers are rendered a `<h1
    id="header">Header</h1>`.
    
      ```markdown
      # Header
      # Header
      # Header
      # Header
      ```
    
    This change is a simple but robust approach that uses an incrementing
    counter and pre-checking to prevent header collision. (The above would
    be rendered as `header`, `header-1`, `header-2`, and `header-3`.) In
    more complex cases, it will append a new counter suffix (`-1`), like so:
    
      ```markdown
      # Header
      # Header 1
      # Header
      # Header
      ```
    
    This will generate `header`, `header-1`, `header-1-1`, and `header-1-2`.
    
    This code has two additional changes over the prior version:
    
    1.  Rather than reimplementing @shurcooL’s anchor sanitization code, I
        have imported it as from
        `github.com/shurcooL/go/github_flavored_markdown/sanitized_anchor_name`.
    
    2.  The markdown block parser is now only interested in *generating* a
        sanitized anchor name, not with ensuring its uniqueness. That code
        has been moved to the HTML renderer. This means that if the HTML
        renderer is modified to identify all unique headers prior to
        rendering, the hackish nature of the collision detection can be
        eliminated.
Commits on Nov 5, 2014
  1. @bep

    Add support for angled, double quotes

    bep authored
    The flag `HTML_SMARTYPANTS_ANGLED_QUOTES` combined with `HTML_USE_SMARTYPANTS` configures rendering of double quotes as angled left and right quotes (&laquo; &raquo;).
    
    The SmartyPants documentation mentions a special syntax for these, `<<>>`, a syntax neither pretty nor user friendly.
    
    Typical use cases would be either or, or combined, but never in the same document. As an example would be a person from Norway; he has a blog in both English and Norwegian (his native tounge); he would then configure Blackfriday to use angled quotes for the Norwegian section, but keep them as reqular double quotes for the English.
    
    If the flag `HTML_SMARTYPANTS_ANGLED_QUOTES` is not provided, everything works as before this commit.
Commits on Oct 28, 2014
  1. @rtfb

    Merge pull request #125 from halostatue/auto-header-id

    rtfb authored
    Add a flag to turn on header ID generation.
  2. @rtfb

    Merge pull request #124 from halostatue/fix-header-id-toc-rendering

    rtfb authored
    Use supplied header ID for TOC rendering.
Something went wrong with that request. Please try again.