Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamkhan21/easy-crooked

JavaScript library for converting HTML to Markdown
https://github.com/iamkhan21/easy-crooked

Last synced: about 1 month ago
JSON representation

JavaScript library for converting HTML to Markdown

Awesome Lists containing this project

README

        

# easy-crooked (under development) | [demo](https://easy-crooked.netlify.app/)

**easy-crooked** is a JavaScript library for converting HTML into Markdown.

![npm](https://img.shields.io/npm/v/easy-crooked)
[![minizipped size](https://badgen.net/bundlephobia/minzip/easy-crooked)](https://bundlephobia.com/result?p=easy-crooked)
[![Tests](https://github.com/iamkhan21/easy-crooked/workflows/CI/badge.svg)](https://github.com/iamkhan21/easy-crooked/actions)
[![codecov](https://codecov.io/gh/iamkhan21/easy-crooked/branch/master/graph/badge.svg)](https://codecov.io/gh/iamkhan21/easy-crooked)
[![GitHub license](https://img.shields.io/github/license/iamkhan21/easy-crooked?style=flat)](https://github.com/iamkhan21/easy-crooked/blob/master/LICENSE)

- [Installation](#installation)
- [Usage](#usage)
- [TODO](#todo)

---

## Installation

Install using the package manager for your desired environment(s):

```bash
npm install easy-crooked
# OR:
yarn add easy-crooked
```

## Usage

```javascript
import parseHtmlToMarkdown from "easy-crooked";

const htmlString = `

Hello Easy Crooked!

`;
const markdown = parseHtmlToMarkdown(htmlString);

console.log(markdown); // # Hello Easy Crooked!
```

## TODO

### Basic Syntax

- [ ] Blockquotes (beautify nested)

### Extended Syntax

- [ ] Tables
- [ ] Nested elements