Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRACO ignores certain markdown format #565

Closed
theshivamgupta opened this issue Apr 10, 2021 · 1 comment
Closed

CRACO ignores certain markdown format #565

theshivamgupta opened this issue Apr 10, 2021 · 1 comment
Labels

Comments

@theshivamgupta
Copy link

I wanted to use tailwindcss in one of my projects, I created my react project with create-react-app for which CRACO configurations is required.
We need to change package.json scripts for it to work but after doing that certain markdown formats stopped working like Bold, BlockQuote.

Before CRACO package.json

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "now-build": "react-scripts build",
    "deploy": "npx now --target production"
  }

After Craco

"scripts": {
    "start": "craco start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject",
  },

craco.config.js

module.exports = {
  style: {
    postcss: {
      plugins: [require("tailwindcss"), require("autoprefixer")],
    },
  },
};
@theshivamgupta theshivamgupta added 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Apr 10, 2021
@ChristianMurphy
Copy link
Member

See #505 tailwind adds styles which makes elements like bold and blockquote look different.
react-markdown is still parsing as expected, and react-markdown does not provide styles.
Styles on the tailwind side can be made to work better with markdown using typography and prose, as noted in #505 (comment)

@ChristianMurphy ChristianMurphy added 👯 no/duplicate Déjà vu and removed 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants