Coder Social home page Coder Social logo

mgyarmathy / delta_markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from friebetill/delta_markdown

0.0 0.0 0.0 10.09 MB

A Delta Markdown converter in Dart

Home Page: https://pub.dev/packages/delta_markdown

License: BSD 3-Clause "New" or "Revised" License

Dart 100.00%

delta_markdown's Introduction

A portable Markdown library written in Dart. It can convert between Markdown and Delta.

The converter is not ready for production

Usage

import 'package:delta_markdown/delta_markdown.dart';

void main() {
  const markdown = 'Hello **Markdown**';
  print(markdownToDelta(markdown));

  const delta = r'[{"insert":"Hello "},{"insert":"Markdown","attributes":{"bold":true}},{"insert":"\n"}]';
  print(deltaToMarkdown(delta));
}

Supports

Currently, these elements are supported:

  • Bold
  • Italic
  • Link
  • Blockquote
  • Header
  • List
  • Code Block
  • Image
  • Horizontal Rule

Does not support the following elements, because Markdown does not support them:

  • Background Color
  • Color
  • Font
  • Size
  • Strikethrough
  • Superscript/Subscript
  • Underline
  • Text Alignment
  • Text Direction
  • Formula
  • Video

Does not support the following elements, because flutter_quill does not support them:

  • Inline Code

Known limits

Support for these elements must be implemented:

  • Indent

There are only a few tests so far, so the functionality is not yet guaranteed in complex cases.

delta_markdown's People

Contributors

srawlins avatar kevmoo avatar friebetill avatar kolja-esders avatar munificent avatar mehaase avatar 0xcaff avatar jcollins-g avatar kwalrath avatar dikmax avatar tomyeh avatar filiph avatar efortuna avatar westy92 avatar chalin avatar mit-mit avatar mgyarmathy avatar dudeofawesome avatar lrhn avatar jiridanek avatar zoechi 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.