Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nucleogenesis/markdownjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nucleogenesis/markdownjs

A simple markdown script in JavaScript.

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Markdown Parser

This is a work-in-progress - super simple Markdown parser. In order to find, match and replace Markdown with proper HTML, I am using regular expressions to match the expected format of the incoming Markdown.

Usage

Adding const parseMarkdownToHTML = require('./index'); where the ./index is the path to the index.js file included in this repo.

You can then use that function by giving it the raw Markdown text:

const parseMarkdownToHTML = require('./index');

const markdown = getElementById("markdown-input").value;    // Get your markdown text - such as from an input or textarea.
const html = parseMarkdownToHTML(markdown);                 // Use the function to convert the Markdown to HTML

getElementById("converted-markdown").innerHTML = html;      // Do things with it - such as applying it to a targeted area of your HTML.

TODO

  • Add tests for all Markdown parsing requirements
  • Make said tests pass.
  • Structure & rename for import into other projects.
  • Revise README once everything is completed.

FAQs

Package last updated on 14 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc