Code Monkey home page Code Monkey logo

js-markdown's Introduction

JavaScript MarkDown

WEB

A JavaScript library for parsing and serializing MarkDown AST/DOM.

This library is a work in progress! This readme also serves as a test document.

It is a work in progress.

Tomas Hubelbauer

Running

npx serve .

To-Do

Implement continuing quote blocks without the subsequent block markers

> quote
still quote

not quote

Implement parsing fenced code blocks

Store cursor position on the block and span objects

This way altering a document can be made by either parsing it, altering it and the serializing it or by parsing it and patching it at the desired position.

Select the block/span region in the text area when hovered over in the list

Implement parsing italic nested in bold and bold nested in italic

Probably need to generalize the bold and italic functions into one which takes the special character as a parameter?

If we make the functions in syntax parametric, it will break equality checks in nameSyntax, so we need to create a fallback for that. The simplest might be just setting name on the resulting function, or setting a symbol or something on it and the generator function which will be used to determine if the generated function came from the generator function at the current key of the syntax object being scanned in nameSyntax.

Fix empty italics parsing as bold

__ is empty italics, bold it when __ is not followed by a space. Same for the asterisk variants.

Fix empty code span not appearing at all in the output

js-markdown's People

Contributors

tomashubelbauer avatar

Watchers

James Cloos avatar  avatar  avatar

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.