Code Monkey home page Code Monkey logo

Comments (2)

piranha avatar piranha commented on August 25, 2024

Yeah, of course I would accept pull request for that, not sure why it was
not enabled. And yes, there's no way to configure this, I figured it was
not worth the hassle.
11 січ. 2014 06:34, користувач "Pranav Raja" [email protected]
написав:

Hi,

I noticed that the Markdown processor being created in utils.go doesn't
have blackfriday.EXTENSION_FOOTNOTES enabled, and there doesn't seem to
be an easy way to override the enabled extensions:

func Markdown(source string) string {
// set up the HTML renderer
flags := 0
flags |= bf.HTML_USE_SMARTYPANTS
flags |= bf.HTML_SMARTYPANTS_FRACTIONS
renderer := bf.HtmlRenderer(flags, "", "")

    // set up the parser
    ext := 0
    ext |= bf.EXTENSION_NO_INTRA_EMPHASIS
    ext |= bf.EXTENSION_TABLES
    ext |= bf.EXTENSION_FENCED_CODE
    ext |= bf.EXTENSION_AUTOLINK
    ext |= bf.EXTENSION_STRIKETHROUGH
    ext |= bf.EXTENSION_SPACE_HEADERS

    return string(bf.Markdown([]byte(source), renderer, ext))}
  • Would you accept a pull request that enabled EXTENSION_FOOTNOTES by
    default? As I understand, it's an additive feature and won't break any
    existing rendering.
  • If not, is there an easy way for me to override/enable this from a
    config, without patching the gostatic source code?

Thanks
pranav


Reply to this email directly or view it on GitHubhttps://github.com//issues/20
.

from gostatic.

pranavraja avatar pranavraja commented on August 25, 2024

Thanks!

from gostatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.