diff --git a/README.md b/README.md index 950c9a5..6a71fb8 100644 --- a/README.md +++ b/README.md @@ -153,35 +153,36 @@ This makes it easy to do things like style links to match your brand, add a bord Here's a complete list of available element modifiers: -| Modifier | Target | -| ---------------------------- | ---------------------------- | -| `prose-headings:{utility}` | `h1`, `h2`, `h3`, `h4`, `th` | -| `prose-lead:{utility}` | `[class~="lead"]` | -| `prose-h1:{utility}` | `h1` | -| `prose-h2:{utility}` | `h2` | -| `prose-h3:{utility}` | `h3` | -| `prose-h4:{utility}` | `h4` | -| `prose-p:{utility}` | `p` | -| `prose-a:{utility}` | `a` | -| `prose-blockquote:{utility}` | `blockquote` | -| `prose-figure:{utility}` | `figure` | -| `prose-figcaption:{utility}` | `figcaption` | -| `prose-strong:{utility}` | `strong` | -| `prose-em:{utility}` | `em` | -| `prose-kbd:{utility}` | `kbd` | -| `prose-code:{utility}` | `code` | -| `prose-pre:{utility}` | `pre` | -| `prose-ol:{utility}` | `ol` | -| `prose-ul:{utility}` | `ul` | -| `prose-li:{utility}` | `li` | -| `prose-table:{utility}` | `table` | -| `prose-thead:{utility}` | `thead` | -| `prose-tr:{utility}` | `tr` | -| `prose-th:{utility}` | `th` | -| `prose-td:{utility}` | `td` | -| `prose-img:{utility}` | `img` | -| `prose-video:{utility}` | `video` | -| `prose-hr:{utility}` | `hr` | +| Modifier | Target | +| ----------------------------- | ---------------------------- | +| `prose-headings:{utility}` | `h1`, `h2`, `h3`, `h4`, `th` | +| `prose-lead:{utility}` | `[class~="lead"]` | +| `prose-h1:{utility}` | `h1` | +| `prose-h2:{utility}` | `h2` | +| `prose-h3:{utility}` | `h3` | +| `prose-h4:{utility}` | `h4` | +| `prose-p:{utility}` | `p` | +| `prose-a:{utility}` | `a` | +| `prose-blockquote:{utility}` | `blockquote` | +| `prose-figure:{utility}` | `figure` | +| `prose-figcaption:{utility}` | `figcaption` | +| `prose-strong:{utility}` | `strong` | +| `prose-em:{utility}` | `em` | +| `prose-kbd:{utility}` | `kbd` | +| `prose-inline-code:{utility}` | `:not(pre)>code` | +| `prose-code:{utility}` | `code` | +| `prose-pre:{utility}` | `pre` | +| `prose-ol:{utility}` | `ol` | +| `prose-ul:{utility}` | `ul` | +| `prose-li:{utility}` | `li` | +| `prose-table:{utility}` | `table` | +| `prose-thead:{utility}` | `thead` | +| `prose-tr:{utility}` | `tr` | +| `prose-th:{utility}` | `th` | +| `prose-td:{utility}` | `td` | +| `prose-img:{utility}` | `img` | +| `prose-video:{utility}` | `video` | +| `prose-hr:{utility}` | `hr` | When stacking these modifiers with other modifiers like `hover`, you most likely want the other modifier to come first: diff --git a/demo/pages/inline-code.js b/demo/pages/inline-code.js new file mode 100644 index 0000000..3799a5c --- /dev/null +++ b/demo/pages/inline-code.js @@ -0,0 +1,50 @@ +import Head from 'next/head' + +export default function Index() { + return ( +
+
+ console.log('test 1')
+ console.log('test 2')
+ console.log('test 3')
+
+
+
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam{' '}
+ console.log('test inline')
repudiandae optio in at quibusdam autem vero
+ excepturi.
+
+
+ console.log('test 1')
+ console.log('test 2')
+ console.log('test 3')
+
+
+
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam
+ debitis vel, hic sunt, nulla deserunt animi iure aliquid et,{' '}
+ console.log('test inline')
repudiandae optio in at quibusdam autem vero
+ excepturi.
+