Coder Social home page Coder Social logo

markdown-to-markup's Introduction

Markdown to HTML

A modern markdown → HTML conversion library

...in the making.

markdown-to-markup's People

Contributors

bence-toth avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

markdown-to-markup's Issues

Add support for images

Wrap it nicely in a figure with an optional figcaption, which should be the same as the alt text or the title.

Renderer for image is unpredictable

Currently the renderer for images generates output that renders in an unpredictable way.

The reason for this is that there is a <figure> element being inserted withing a <p> element, which is invalid in HTML.

Solution idea:

  • If there is a single image (and nothing else) rendered within a paragraph, the paragraph element should be replaced by the <figure> element which encompasses the image.
  • If there are other elements (typically text) rendered around (before/after) the image, the image must not be wrapped in a <figure> element, and <figcaption> also must not be attached – it must render the <img /> element only

Add support for blockquotes

All kinds of elements can be embedded in a blockquote, including headings, lists, and even other blockquotes.

Add support for links

  • Ordinary links (absolute + relative)
  • Link with relative path
  • Reference-style link
  • Link with embedded content (images etc.)

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.