Skip to content

Commit cf04e25

Browse files
authored
Merge pull request #376 from timlrx/fix/tailwind-prism
tailwind prism css changes
2 parents a317329 + f395baa commit cf04e25

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

css/prism.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,7 @@
134134
.token.italic {
135135
font-style: italic;
136136
}
137+
138+
.token.table {
139+
display: inline;
140+
}

data/blog/new-features-in-v1.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ A long description of yourself...
260260

261261
You can use this information in multiple places across the template. For example in the about section of the page, we grab the default author information with this line of code:
262262

263-
```
263+
```js
264264
const authorDetails = await getFileBySlug('authors', ['default'])
265265
```
266266

@@ -272,7 +272,7 @@ The frontmatter of a blog post accepts an optional `authors` array field. If no
272272

273273
For example, the following frontmatter will display the authors given by `data/authors/default.md` and `data/authors/sparrowhawk.md`
274274

275-
```
275+
```yaml
276276
title: 'My first post'
277277
date: '2021-01-12'
278278
draft: false
@@ -437,7 +437,7 @@ You can see an example of such a migration in this [commit](https://github.com/t
437437

438438
v1 also uses `feed.xml` rather than `index.xml`, to avoid some build issues with Vercel. If you are migrating you should add a redirect to `next.config.js` like so:
439439

440-
```
440+
```js
441441
async redirects() {
442442
return [
443443
{

tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const defaultTheme = require('tailwindcss/defaultTheme')
22
const colors = require('tailwindcss/colors')
33

44
module.exports = {
5+
experimental: {
6+
optimizeUniversalDefaults: true,
7+
},
58
content: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './lib/**/*.js'],
69
darkMode: 'class',
710
theme: {

0 commit comments

Comments
 (0)