GithubHelp home page GithubHelp logo

pauliescanlon / zmarkdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zestedesavoir/zmarkdown

0.0 2.0 0.0 14.48 MB

Live demo: https://zestedesavoir.github.io/zmarkdown/

License: MIT License

Shell 0.14% JavaScript 98.37% CSS 0.43% HTML 1.07%

zmarkdown's Introduction

ZMarkdown

Build Status Coverage Status

This repository contains all the plugins for ZMarkdown, the Markdown engine powering Zeste de Savoir.

It is a collection of packages extending the remark processor and its MDAST syntax tree, rehype (for HTML processing) and textr (text transformation framework). It also provides MDAST to LaTeX compilation via rebber (and its plugins).

Currently, all the plugins provided only work for remark versions lesser than 13.0.0 (i.e. previous to micromark). While we intend to switch to the new system, no due date has been planned, and it requires a significant amount of work, so please be patient, or, even better, help us making the switch!

Install

Prerequisites

  • node >= 12
  • npm >= 7

Installation

  1. git clone [email protected]:zestedesavoir/zmarkdown.git
  2. npm install
  3. npm run bootstrap

This project uses Jest for testing. It is recommended to use the locally installed version using npx, and run Jest in watch mode when developing npx jest --watch --notify (--notify sends desktop notifications when tests run).

Useful commands

  • npm run test : tests all packages.
  • npm run clean : clears local dependencies, reinstalls the project and runs all tests.
  • npm run lint : runs eslint to check the syntax of the full codebase.
  • npm run build : builds packages using babel.
  • npm run build -- --scope=<package> : same as above, but builds only <package>.

Packages

  • mdast-util-split-by-heading

    A MDAST tool to split a markdown tree into list of subtrees representing the chapters. It relies on heading depth.

  • rebber

    transformation of MDAST into latex code. This code must be included inside a custom latex to be compiled. Have a look at https://github.com/zestedesavoir/latex-template/blob/master/zmdocument.cls to get a working example.

  • remark-abbr

    This plugin parses *[ABBR]: abbr definition and then replace all ABBR instance in text with a new MDAST node so that rehype can parse it into abbr html tag.

  • rehype-footnotes-title

    This plugin adds a title attribute to the footnote links, mainly for accessibility purpose.

  • rehype-html-blocks

    This plugin wraps (multi-line) raw HTML in p.

  • remark-align

    This plugin parses custom Markdown syntax to center- or right-align elements.

  • remark-captions

    Allow to add caption to such element as image, table or blockquote.

  • remark-comments

    This plugin parses custom Markdown syntax for Markdown source comments.

  • remark-custom-blocks

    This plugin parses custom Markdown syntax to create new custom blocks.

  • remark-emoticons

    This plugins replaces ASCII emoticons with associated image. Compatible with rehype

  • remark-escape-escaped

    This plugin escapes HTML entities from Markdown input.

  • remark-grid-tables

    This plugin parses custom Markdown syntax to describe tables.

  • remark-heading-shift

    Allows to shift heading to custimize the way you will integrate the generated tree inside your application.

  • remark-heading-trailing-spaces

    This plugin removes trailing spaces from Markdown headers.

  • remark-iframes

    Allows to add iframe inclusion through !(url) code.

  • remark-kbd

    This plugin parses custom Markdown syntax to handle keyboard keys.

  • remark-numbered-footnotes

    This plugin changes how mdast footnotes are displayed by using sequential numbers as footnote references instead of user-specified strings.

  • remark-sub-super

    This plugin parses custom Markdown syntax to handle subscript and superscript.

  • typographic-colon

    Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.

  • typographic-permille

    Micro module to replace %o with and optionally replace the preceding space.

  • zmarkdown

    Fully integrated package to be used in zeste de savoir website

License

MIT © Zeste de Savoir

zmarkdown's People

Contributors

vhf avatar likakavkasidze avatar artragis avatar amarok1412 avatar heziode avatar a-312 avatar arobase-che avatar sandhose avatar amaurycarrade avatar motet-a avatar itsknob avatar dependabot[bot] avatar chitoku-k avatar greenkeeper[bot] avatar smesterheide avatar nils-van-zuijlen avatar jlengstorf avatar situphen avatar amanda-mitchell avatar redmega avatar brabster avatar pierre-24 avatar roxspring avatar vsemozhetbyt avatar

Watchers

James Cloos avatar  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.