Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jub0t/markdownx

Unleash the Power of Markdown with Tailwind CSS Compatibility
https://github.com/jub0t/markdownx

markdown markdown-parser md parser regex taildown tailwinds tailwinds-markdown tailwindscss

Last synced: 16 days ago
JSON representation

Unleash the Power of Markdown with Tailwind CSS Compatibility

Awesome Lists containing this project

README

        

# Markdown For Tailwinds

⚡ Markdown parser compatible with Tailwind Css. Prism.js themes can be found [here](./styles).

![Preview](./preview.png)

## Installation

Get the file from Releases, get styles from [here](https://github.com/PrismJS/prism-themes)

## Usage

```js
// Initialized
const Parser = new Tayparser();
```

```js
// Parse Markdown
const MarkdownCode = `
# Blog Post
`;
const Code = Parser.parse(MarkdownCode);
console.log(Code);
```

```js
// Highlight All

 Snippets

Prism.highlightAll();
```

```js
// Escape HTML
const Markdown = new TailDown({ escapeHTML: true });
```

## Config

```js
const Markdown = new TailDown({
a: {
customClass: "hover:text-blue-500",
extendStyle: "display: block;",
},
h3: {
customClass: "text-gray-600",
extendStyle: "display: block;",
},
});
```