Code Monkey home page Code Monkey logo

hexo-renderer-markdown-it's Introduction

hexo-renderer-markdown-it

Build Status npm version npm dependencies Coverage Status

This renderer plugin uses Markdown-it as a render engine on Hexo. Adds support for Markdown and CommonMark.

Main Features

  • Support for Markdown, GFM and CommonMark
  • Extensive configuration
  • Faster than the default renderer | hexo-renderer-marked
  • Safe ID for headings
  • Anchors for headings with ID
    • Multi-languages Supported
  • Footnotes
  • <sub> H2O
  • <sup> x2
  • <ins> Inserted

Installation

Follow the installation guide.

Options

markdown:
  render:
    html: true
    xhtmlOut: false
    breaks: true
    linkify: true
    typographer: true
    quotes: '“”‘’'
  plugins:
  anchors:
    level: 2
    collisionSuffix: ''
    # replacement String to replace whitespace with, defaults to `-` (provides API compatibility with the `slug` module)
    replacement:  '-'
    # separator String, equivalent to `replacement` (provides API compatibility with the `speakingurl` module)
    # separator:  '-'
    # lang String, ISO 639-1 two-letter language code, defaults to auto-detected language
    #lang: 'de'
    # tone Boolean, add tone numbers to Pinyin transliteration of Chinese, defaults to `true`
    tone: true
    # separateNumbers Boolean, separate numbers that are within a word, defaults to `false`
    separateNumbers: false
    # maintainCase Boolean, maintain the original string's casing, defaults to `false`
    maintainCase: false
    #custom
    #  - Object, custom map for translation, overwrites all i.e. `{ '&': '#', '*': ' star ' }`
    #  - Array, add chars to allowed charMap
    #custom:

Refer to the wiki for more details.

Requests and bug reports

If you have any feature requests or bugs to report, you're welcome to file an issue.

hexo-renderer-markdown-it's People

Contributors

curbengh avatar dependabot[bot] avatar noahdragon avatar dependabot-preview[bot] avatar yoshinorin avatar chawyehsu avatar mshick avatar h404bi avatar snowyu avatar seoh avatar segayuu avatar

Watchers

 avatar

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.