GithubHelp home page GithubHelp logo

teekennedy / goldmark-markdown Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 59 KB

Goldmark extension that renders and formats markdown files

License: MIT License

Go 100.00%
ast commonmark go goldmark goldmark-extension markdown

goldmark-markdown's People

Contributors

benclmnt avatar dependabot[bot] avatar radeksimko avatar teekennedy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

goldmark-markdown's Issues

Allow option to set indentation for sublists

In some Markdown implementations, a sublist to be considered an actual sublist, it must be indented with at least 4 spaces, e.g.:

- List
    - This will work

- Another list
  - This will not work

One example: https://python-markdown.github.io/:

The syntax rules clearly state that when a list item consists of multiple paragraphs, “each subsequent paragraph in a list item must be indented by either 4 spaces or one tab” (emphasis added). However, many implementations do not enforce this rule and allow less than 4 spaces of indentation. The implementers of Python-Markdown consider it a bug to not enforce this rule.

It would be great if this project supported an option to customise this, since it is not always possible to adjust the renderer to fix this issue.

Support rendering Table elements

First, thanks for this small and nice renderer and the description in the README and provided examples!

After parsing a document with table extension, like this:

gm := goldmark.New(goldmark.WithExtensions(extension.Table))

...the resulting document is a "little bit destroyed", this seems to be caused by the missing "KindTable" for the renderer.

Is there a plan to implement it or would this be possible by a custom extension, e.g. with this PR #16 ?

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.