GithubHelp home page GithubHelp logo

Comments (4)

irmerk avatar irmerk commented on August 28, 2024

Current Information:

This library utilizes the official Accord Project version of Concerto (@accordproject/concerto)

The project structure:

  • markdown-common: Transformation between Commonmark strings and a Commonmark AST
  • markdown-cicero: Additional transformation between CommonMark AST and an extension for Accord Project's Cicero
  • markdown-slate: Additional transformation between CommonMark AST and a Slate DOM
  • markdown-cli: Top-level command line interface for the transformation libraries

Miscellaneous information:

  • Clauses are recognised through the info part of the code block
  • Calculation exists for convenience for clause text without variables tags

API

Most API calls return pure JSON rather than Concerto objects, for portability.

Classes are CommonMark and CiceroMark containing operations to/from string and to/from CommonMark

CLI

Options:

All examples are using mdtransform parse --sample test/ul.md, which prints the CommonMark AST by usin the CommonMark parser and transformer

  • --noIndex: Disable automatic indexing for ordered lists.

Here is an example of roundtrip for an ordered list with and without the --noIndex option:

bash-3.2$ mdtransform parse --sample ol-tight.md --roundtrip 
09:37:47 - info: 
This is an ordered list:

1. one
2. two
3. three

Done.
bash-3.2$ mdtransform parse --sample ol-tight.md --roundtrip --noIndex 
09:37:50 - info: 
This is an ordered list:

1. one
1. two
1. three

Done.
  • --roundtrip: Re-generates the markdown from the AST

  • --cicero: Print the CiceroMark AST

  • --slate: Displays the Slate DOM

from markdown-transform.

irmerk avatar irmerk commented on August 28, 2024

Note that --roundtrip and --generateMarkdown are similar and could use review.

from markdown-transform.

jeromesimeon avatar jeromesimeon commented on August 28, 2024

There should not be a --generateMarkdown anymore

from markdown-transform.

jeromesimeon avatar jeromesimeon commented on August 28, 2024

@irmerk We have now a regular release process for this, with release notes. This is already used in the 0.20 release. Can we close?

from markdown-transform.

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.