Git Product home page Git Product logo

marked-mangle's People

Contributors

baseplate-admin avatar curran avatar dependabot[bot] avatar github-actions[bot] avatar mrsimonemms avatar semantic-release-bot avatar uzitech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

curran seanpm2001

marked-mangle's Issues

TypeScript: Deceleration or Migrate

What pain point are you perceiving?.
Even when including @types/marked, including marked-mangle doesn't support TypeScript.

Describe the solution you'd like
As Marked migrates to TypeScript, so should these new Marked support libraries. As they are small projects and the main project will remove the @types/marked dependency, I would request the migration route to reduce the need to add two packages per package.

JS heap out of memory

Using marked-mangle exactly as in the instructions causes "JS heap out of memory" error.
I'm running this code in a unit test with Vitest.

New:

import { marked } from "marked";
import { mangle } from "marked-mangle";

...

marked.use(mangle());
const inlineHtml = marked.parse(latestComment);

Documentation: Context for this library

As a first-time user of this library coming from a warning displayed by marked, I want to know what the purpose of this package is.

The readme states:

Mangle mailto links with HTML character references.

However, I don't have any understanding of why one would want to do this. What purpose does this serve? Why would anyone choose to opt into using this?

I would suggest adding a sentence to the README like:

Mangling mailto links is useful when ...

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.