Coder Social home page Coder Social logo

mateuszkubuszok / flexmark-scala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vsch/flexmark-java

0.0 0.0 0.0 151.74 MB

License: BSD 2-Clause "Simplified" License

Shell 0.01% JavaScript 0.03% Java 96.61% CSS 0.09% HTML 2.87% Scala 0.40%

flexmark-scala's Introduction

Scala.md

Scala.md is a rewrite of flexmark-java into Scala, while flexmark-java is a Java implementation of CommonMark (spec 0.28) parser using the blocks first, inlines after Markdown parsing architecture which boasts:

Its strengths are speed, flexibility, Markdown source element based AST with details of the source position down to individual characters of lexemes that make up the element and extensibility.

The API allows granular control of the parsing process and is optimized for parsing with a large number of installed extensions. The parser and extensions come with plenty of options for parser behavior and HTML rendering variations. The end goal is to have the parser and renderer be able to mimic other parsers with great degree of accuracy. This is now partially complete with the implementation of Markdown Processor Emulation

Motivation for this project was the need to replace pegdown parser in my Markdown Navigator plugin for JetBrains IDEs. pegdown has a great feature set but its speed in general is less than ideal and for pathological input either hangs or practically hangs during parsing.

Scala.md was created because:

  • I needed slightly more Scala-idiomatic API - that could have been addressed with a wrapper, though
  • I needed the code to be cross-compiled between Scala and Scala Native - I want to be able to develop static-site generator for Markdown using Scala CLI - users would be able to customize its behavior in Scala CLI AND run their modifications as a Native app - this would be possible with GraalVM... but native-image build takes A LOT of time and resources, so it doesn't have a nice feedback loop
  • I thought it would be fun, and you cannot take that away from me

Progress and scope

Scala.md is not intended to be as fast as flexmark-java - as long as I would be able to build sited noticeable faster than with jekyll I'd be pretty happy. It will not be as modular, nor implement all the modules that flexmark did (e.g. it doesn't provide: DOCX-rendering or PDF-rendering).

License

Copyright (c) 2015-2016 Atlassian and others.

Copyright (c) 2016-2023, Vladimir Schneider,

BSD (2-clause) licensed, see LICENSE.txt file.

flexmark-scala's People

Contributors

vsch avatar robinst avatar chiwanpark avatar sparksparrow avatar jinneej avatar haumacher avatar mateuszkubuszok avatar derari avatar markkolich avatar dependabot[bot] avatar sentyaev avatar groxx avatar benelog avatar roxspring avatar gomiguchi avatar rems avatar prayagverma avatar pcj avatar parth avatar niklasf avatar minidigger avatar tobiasstadler avatar bvn13 avatar bashtian avatar jjybdx4il avatar jochenberger avatar niksw7 avatar qwazer avatar spand avatar vnaso 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.