Code Monkey home page Code Monkey logo

Comments (3)

wooorm avatar wooorm commented on May 28, 2024

One of the cool things about this projects is that it supports lots of settings, useful for prettyfying and minification (rehype-minify, rehype-format), and that project doesn't support this, right?

I like the spec though, and would love to make h support it!

from hast-util-to-html.

derhuerst avatar derhuerst commented on May 28, 2024

fair point!

from hast-util-to-html.

wooorm avatar wooorm commented on May 28, 2024

I looked again at h2ml and it’s a nice project, it works well in the browser where space is a concern, but there’s a lot of ways HAST is better for its goals, namely being valid and optionally outputting tiny HTML.

  1. h2ml can generate invalid HTML (no entity support)
  2. h2ml doesn’t support comments or doctypes
  3. h2ml can generate bloated HTML, hast-util-to-html can generate tiny HTML

...there’s definitely room for a tiny version of hast-util-to-html in the ecosystem that looks more like h2ml, but there’s also room for this project itself!

from hast-util-to-html.

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.