<commit_before># Kramdown Prismic

A Kramdown converter to convert documents into prismic rich text format.

## Status

*Very early*, still a proof of concept.

TODO:

- [x] heading1
- [x] heading2
- [x] heading3
- [x] heading4
- [x] heading5
- [x] heading6
- [x] paragraph
- [x] preformatted
- [x] strong
- [x] em
- [x] hyperlink
- [x] o-list-item
- [x] list-item
- [ ] Image
- [ ] Embed

## Difference between markdown and rich text

| Markdown     | Prismic                    |
|--------------|----------------------------|
| Blockquote   | translated to preformatted |
| hr           | nothing                    |

## Install

Not yet available on rubygems

## Usage

```ruby
require 'kramdown-prismic'

Kramdown::Document.new(markdown).to_prismic
```

## License

MIT<commit_msg>Add table support.<commit_after># Kramdown Prismic

A Kramdown converter to convert documents into prismic rich text format.

## Status

*Very early*, still a proof of concept.

TODO:

- [x] heading1
- [x] heading2
- [x] heading3
- [x] heading4
- [x] heading5
- [x] heading6
- [x] paragraph
- [x] preformatted
- [x] strong
- [x] em
- [x] hyperlink
- [x] o-list-item
- [x] list-item
- [ ] Image
- [ ] Embed

## Difference between markdown and rich text

| Markdown         | Prismic                    |
|------------------|----------------------------|
| Blockquote       | translated to preformatted |
| hr               | nothing                    |
| img              | moved to to level          |
| dl               |                            |
| dt               |                            |
| dl               |                            |
| table            |                            |
| thead            |                            |
| tobdy            |                            |
| tfoot            |                            |
| tr               |                            |
| td               |                            |
| math             |                            |
| footnote         |                            |
| entity           |                            |
| typographic_sym  |                            |
| smart_quote      |                            |
| abbreviation     |                            |
| html_element     |                            |
| xml_comment      |                            |
| xml_pi           |                            |
| comment          |                            |
| raw              |                            |

## Install

Not yet available on rubygems

## Usage

```ruby
require 'kramdown-prismic'

Kramdown::Document.new(markdown).to_prismic
```

## License

MIT
{'fraction_non_alphanumeric': 0.12939841089670828, 'fraction_numerical': 0.004540295119182747, 'mean_word_length': 0.9512915129151291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1384722', 'n_tokens_mistral': 740, 'n_tokens_neox': 706, 'n_words': 182}