GithubHelp home page GithubHelp logo

Comments (4)

tarcieri avatar tarcieri commented on August 15, 2024

Looks like the Markdown generator is double escaping it:

https://github.com/RustSec/rustsec.github.io/blame/4d1907c9fb/_posts/2019-06-15-RUSTSEC-2019-0005.md#L11

from advisory-db.

tarcieri avatar tarcieri commented on August 15, 2024

It should just be a Handlebars config option:

https://github.com/RustSec/rustsec.github.io/blob/master/rustsec-website-gen/src/main.rs#L96
https://docs.rs/handlebars/2.0.1/handlebars/struct.Handlebars.html#method.register_escape_fn

e.g.

handlebars.register_escape_fn(handlebars::no_escape);

from advisory-db.

notriddle avatar notriddle commented on August 15, 2024

If you're using handlebars, the output of your markdown parser should be written using {{{html}}}.

For example, here where {{score}} is subject to escaping while {{{excerpt_html}}} is not.

from advisory-db.

tarcieri avatar tarcieri commented on August 15, 2024

These have been re-rendered after merging @notriddle's PR https://github.com/RustSec/rustsec.github.io/pull/7 and are no-longer double escaped

from advisory-db.

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.