|over 2 years ago||8 days ago|
|MIT License||GNU General Public License v3.0 or later|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
How To Parse and Render Markdown In Vuejs
6 projects | dev.to | 26 Aug 2021
Vue does not have as much support for Vue as there is for React. Examples are markdown-it, Remark.js, marked.js. But hopefully in the future, there should be more support, and after much research, I picked marked.js because it has the most stars and has zero vulnerability. Marked does not sanitize (meaning it does not secure HTML documents from attacks like cross-site scripting (XSS) ) marked output HTML as that feature is deprecated and has vulnerability but however, it supports the use of other libraries to secure output HTML such as DOMPurify (recommended), sanitize-html or insane.
🤖 AI Search and Q&A for Your Dev.to Content with Vrite
3 projects | dev.to | 24 Aug 2023
Vrite SDK provides a few built-in input and output transformers. These are functions, with standardized signatures to process the content from and into Vrite. In this case, gfmInputTransformer is essentially a GitHub Flavored Markdown parser, using Marked.js under the hood.
Better code highlighting on the web: rehype-tree-sitter
3 projects | news.ycombinator.com | 24 Jul 2023
Another contestant in this realm is Bright. It runs entirely on the server and doesn't increase bundle size as seen here. Regarding parsing speed tree-sitter is without a doubt performant since it is written in Rust, but I don't have any problems "parsing on every keystroke" with a setup containing Marked, highlight.js and a sanitizer. I did however experience performance issues with other Markdown parser libraries than Marked.
Vrite Editor: Open-Source WYSIWYG Markdown Editor
11 projects | dev.to | 18 Jul 2023
To handle pasting block Markdown content like this, I had to tap into ProseMirror and implement a custom mechanism (though somewhat based on TipTap’s paste rules), detecting starting and ending points of the blocks and parsing them with Marked.js.
How I put ChatGPT into a WYSIWYG editor
6 projects | dev.to | 19 Jun 2023
Again, with streaming enabled, you’ll now receive new tokens as soon as they’re available. Given that OpenAI’s API uses Markdown in its response format, a full message will need to be put together from the incoming tokens and parsed to HTML, as accepted by the replaceContent function. For this purpose, I’ve used the Marked.js parser.
Can you use Eleventy with just md files? Or do you need a templating language?
2 projects | /r/WebDevBuddies | 17 Jun 2023
Eleventy can take an .md file and output a .html but if you want to go as vanilla as possible you can just use a module like marked to do that.
Next-Level Technical Blogging with Dev.to API
2 projects | dev.to | 13 Jun 2023
Once you have the article data, you’ll likely have to process its body_markdown to a format required by your website, like HTML. There are many tools you can do this with — here’s an example using Marked.js:
[AskJS] Advice on how to manage breaking changes in the first versions of a UI Library
While changeset still lacks some features like a unified changelog for all the package, this can be handled with some scripts. Using for example marked one could set up some parsing to create a unified changelog for the whole system.
Releasing Longdown: Convert longform markdown files to outline format used by Logseq
4 projects | /r/logseq | 18 Apr 2023
did you look at the marked parser? (https://github.com/markedjs/marked) I'm using it for an upcoming plugin I'm working on
Good Markdown Editor for SvelteKit?
7 projects | /r/sveltejs | 3 Apr 2023
I used marked.js to build my blog. I use it as both an in browser editing tool and to compile markdown from a database on the server. It's certainly not as advanced as ByteMD or Milkdown, but it does have some extensions to bridge a few of the gaps.7 projects | /r/sveltejs | 3 Apr 2023
Markdown isn't really standardised, but that's understandable wanting to use it if not all clients are web-based. If you only want to display the result and not have a rich editor, you could look into something simpler like Marked.
What are some alternatives?
remark - markdown processor powered by plugins part of the @unifiedjs collective
markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
DOMPurify - DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
MDsveX - A markdown preprocessor for Svelte.
front-matter - Extract YAML front matter from strings
Jinja2 - A very fast and expressive template engine.
docx-to-pdf-on-AWS-Lambda - Microsoft Word doc/docx to PDF conversion on AWS Lambda using Node.js
sanitize-html - Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance