Skip to content

v0.9.0

Compare
Choose a tag to compare
@cossssmin cossssmin released this 05 Mar 17:43
· 1851 commits to master since this release

This is a minor feature release.

New Markdown syntax

We've migrated over to posthtml-markdown, please see the updated Markdown docs.

Basically, you'll now add Markdown like this:

<markdown>This Markdown will be **compiled** to HTML</markdown>
<md>There's also a _shorter_ version of the tag above.</md>

Or like this:

<div markdown>This Markdown will be **compiled** to HTML</div>
<p md>There's also a _shorter_ version of the tag above.</p>

Transform Contents

This is a very cool feature in 0.9.0. It was previously used only to compile Tailwind CSS directives like @apply, with PostCSS, but we've now opened it up so you can:

  1. add a custom attribute on an element
  2. associate it with a function that transforms the content inside that element 💥

Learn more about it in the Transform Content docs.

Support dots in utility class names

Since Tailwind UI was released, some might want to use names like '2.5' for (spacing?) utilities.

This release adds support for that - see docs.

<style postcss>

You'll now need to use a postcss attribute on <style> tags that you want to use Tailwind CSS inside of (docs):

- <style tailwind>
+ <style postcss>

Commits

  • Use postcss attribute to compile with PostCSS. 9683561
  • Support dots in utility class names. 84b6dbd
  • PostHTML content transforms. 6478bb5
  • Extract PostHTML Transformers to their own files. 476450b
  • Use posthtml-markdown. 025da74

v0.8.0...v0.9.0