# tayparser

> ⚡ Markdown parser compatible with Tailwind Css

Latest version **0.0.2** (published 2022-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tayparser
pnpm add tayparser
yarn add tayparser
bun add tayparser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-06-03 |
| First published | 2022-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 822.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jareer Abdullah |
| Maintainers | jub0t |

## Links

- npm: https://www.npmjs.com/package/tayparser
- Repository: https://github.com/jareer12/TailwindsMarkdown
- Homepage: https://github.com/jareer12/TailwindsMarkdown#readme
- Issues: https://github.com/jareer12/TailwindsMarkdown/issues
- npm.io page: https://npm.io/package/tayparser

## Dependencies (2)

- [@tailwindcss/forms](https://npm.io/package/@tailwindcss/forms.md) ^0.5.0
- [@tailwindcss/typography](https://npm.io/package/@tailwindcss/typography.md) ^0.5.2

## Recent versions

- 0.0.2 (latest) — 2022-06-03

## README

# Markdown For Tailwinds

⚡ Markdown parser compatible with Tailwind Css. Prism.js themes can be found [here](./styles).

![Preview](./preview.png)

## Installation

```html
<!-- Main File -->
<script src="https://cdn.jsdelivr.net/npm/tailmark/src/index.min.js"></script>
```

```html
<!-- For Code Snippets -->
<script src="https://cdn.jsdelivr.net/npm/tailmark/src/prism.min.js"></script>
<link
  href="https://cdn.jsdelivr.net/npm/tailmark/styles/dracula.min.css"
  rel="stylesheet"
/>
```

## 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 <pre> 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;",
  },
});
```

---
_Source: https://npm.io/package/tayparser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
