Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fsegurai/marked-extensions

Markedjs extensions to expand the standard Github-Flavored renders to support advanced features
https://github.com/fsegurai/marked-extensions

Last synced: 13 days ago
JSON representation

Markedjs extensions to expand the standard Github-Flavored renders to support advanced features

Awesome Lists containing this project

README

        


Marked Extensions Logo



Build Status


Latest Release

Test Status



GitHub contributors
Dependency status for repo

GitHub License



Stars
Forks

**A library of custom extensions for Marked.js**

`@fsegurai/marked-extensions` is a collection of custom extensions for Marked.js, making it more powerful and versatile.

### Table of contents

- [Installation](#installation)
- [Using a Specific Extension](#using-a-specific-extension)
- [Available Extensions](#available-extensions)
- [Demo Application](#demo-application)
- [Local Development](#local-development)
- [License](#license)

## Installation

### Using a Specific Extension

Import the desired extension from the package and apply it to your Marked instance as shown below.

```typescript
import { marked } from "marked";
import { markedExtendedTables } from "@fsegurai/marked-extended-tables";

// or UMD script
//
//

marked.use(markedExtendedTables());

marked(`
| H1 | H2 | H3 |
| ------------------------- | --- | --- |
| This cell spans 3 columns | | |
`);

/**
*
*
*
* H1
* H2
* H3
*
*
*
*
* This cell spans 3 columns
*
*
*
*/
```

Read the [Marked.js documentation](https://marked.js.org/) for more details about its usage.

### Available Extensions

- [Marked Extended Code Preview](https://github.com/fsegurai/marked-extensions/tree/main/packages/marked-extended-code-preview)
- [Marked Extended Footnote](https://github.com/fsegurai/marked-extensions/tree/main/packages/marked-extended-footnote)
- [Marked Extended Lists](https://github.com/fsegurai/marked-extensions/tree/main/packages/marked-extended-lists)
- [Marked Extended Tables](https://github.com/fsegurai/marked-extensions/tree/main/packages/marked-extended-tables)
- [Marked Extended Typographic](https://github.com/fsegurai/marked-extensions/tree/main/packages/marked-extended-typographic)

### Demo Application

To see all themes in action, check out the [DEMO](https://fsegurai.github.io/marked-extensions/).

### Local Development

To set up the demo locally:

```bash
git clone https://github.com/fsegurai/marked-extensions.git
npm install
npm start
```

This will serve the application locally at [http://[::1]:8000](http://[::1]:8000).

## License

Licensed under [MIT](https://opensource.org/licenses/MIT).