Coder Social home page Coder Social logo

Comments (8)

billryan avatar billryan commented on July 24, 2024 1

@tommy351 Sorry for my ignorance of the kramdown. Any other ways to show math fomulas with Hexo?

from hexo.

tommy351 avatar tommy351 commented on July 24, 2024

這是個不錯的點子,marked支援的語法有些不足,但是node-discount要用到C++,可能會造成某些環境下不支援,所以會以外掛形式推出

from hexo.

lucifr avatar lucifr commented on July 24, 2024

期待~

from hexo.

tommy351 avatar tommy351 commented on July 24, 2024

Discount 外掛已發佈,目前不知為何對於code block處理有些問題,正在解決中

from hexo.

tommy351 avatar tommy351 commented on July 24, 2024

找到原因了,主程式的程式碼漏打了一段,0.4.1版已修復

from hexo.

lucifr avatar lucifr commented on July 24, 2024

index.js 里面这句:

return md.parse(content, md.flags.extraFootnote);

其中 .flags.xxx 是用来设置 discount 的 flag 的,不同的 flag 可以有不同的功能,extraFootnote 只是添加了脚注功能,node-discount 支持的其它 flag 可以看这里。甚至可以支持多个 flag:

html = md.parse('some markdown text to parse', md.flags.noHTML | md.flags.noImage)

希望能添加对自定义 flag 的支持

from hexo.

billryan avatar billryan commented on July 24, 2024

I wonder if you can add kramdown(MathJax available) support? For some fomulas I would use. Thank you!

from hexo.

tommy351 avatar tommy351 commented on July 24, 2024

@billryan kramdown is a ruby module, so it can't be used in Node.js so far

from hexo.

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.