{"repo":"stormz/kramdown-prismic","free":true,"listed":false,"github":"https://github.com/stormz/kramdown-prismic","clone":"git clone https://github.com/stormz/kramdown-prismic.git","description":"Kramdown to prismic's rich text format and the other way around","language":"Ruby","stars":24,"topics":["kramdown","prismicio","prismic","prismic-cms","converter","html","markdown","ruby"],"license":"MIT","category":"productivity","readme_excerpt":"Kramdown Prismic A [Kramdown][] parser and converter to convert documents into [prismic][] rich text format and the other way around. A useful usage is to convert markdown documents to prismic for [import purpose][prismic-import]. Then you can even convert prismic format back to markdown. Learn more how to import markdown document to Prismic. Status The converter part (kramdown to prismic) is working and fairly complete. See Difference between markdown and rich text below to know more about limitations. The parser part is quite new and not feature complete. Install Usage With executables markdown2prismic : markdown2prismic $'# My Title\\n\\nHello world' html2prismic : html2prismic ' My Title Hello world ' prismic2markdown : prismic2markdown '[{\"type\":\"heading1\",\"content\":{\"text\":\"My Title\",\"spans\":[]}},{\"type\":\"paragraph\",\"content\":{\"text\":\"Test\",\"spans\":[]}}]' As a library Convert kramdown documents to Prismic Convert markdown documents to Prismic Convert HTML documents to Prismic Convert Prismic to markdown You can also convert to or from others formats supported by Kramdown. See kramdown documentation. Lookup for warnings If there is some elements that cannot be converted (see the status table), a warning will be emitted. For instance, html elements in the markdown is not supported: Difference between markdown and rich text Some elements cannot be converted, due to some Prismic limitations. The table below explain the difference and limitations of the current converter: Mark","default_branch":null,"files":null,"tree":[],"storefront":"/r/stormz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stormz/kramdown-prismic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}