We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.5.12
v18.16.1
chrome
Windows
https://github.com/jwcesign/md-render
With the original official react-markdown demo(https://remarkjs.github.io/react-markdown/), it renders correct for : https://raw.githubusercontent.com/alist-org/alist/v3.33.0/README.md
But with my demo project, it does not work fine for the big log:
After I change from height to width, it works fine: AlistGo/alist#6282
The text was updated successfully, but these errors were encountered:
BTW, nice project, thanks for your hard work!
Sorry, something went wrong.
Hey! So technically this isn't an issue with the Typography plugin, but rather it's being caused by the Preflight styles in Tailwind CSS:
https://github.com/tailwindlabs/tailwindcss/blob/b01283cc9b66cf830d87cbfe1fbb5ebb8561226a/src/css/preflight.css#L369-L377
This is something we might eventually change, as there has been discussion about this previously:
tailwindlabs/tailwindcss#506 tailwindlabs/tailwindcss#7742
Until then, one trick you can use to undo these Preflight styles is to use revert-layer:
revert-layer
img { height: revert-layer; }
Alternatively, you could also set an explicit hight for this image using a creative attribute selector — something like this:
img[alt="logo"]{ height: 100px; }
Hope that helps! 👍
reinink
No branches or pull requests
What version of @tailwindcss/typography are you using?
0.5.12
What version of Node.js are you using?
v18.16.1
What browser are you using?
chrome
What operating system are you using?
Windows
Reproduction repository
https://github.com/jwcesign/md-render
Describe your issue
With the original official react-markdown demo(https://remarkjs.github.io/react-markdown/), it renders correct for : https://raw.githubusercontent.com/alist-org/alist/v3.33.0/README.md
![image](https://private-user-images.githubusercontent.com/19745536/318068867-51eb41c3-5a9c-4f72-b737-135f80bdd0fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzM0NzIsIm5iZiI6MTczOTEzMzE3MiwicGF0aCI6Ii8xOTc0NTUzNi8zMTgwNjg4NjctNTFlYjQxYzMtNWE5Yy00ZjcyLWI3MzctMTM1ZjgwYmRkMGZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIwMzI1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhOGVkNjBkYzIwYTE5ZjFiNDg0NzQ3ODMxZDA1NThmZjBlYWI0MGQ3NWE1NGQ1ZmVjZDA1YzE5NzM4NTI2NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qCsnqrlKkd75FBgvIcWqX2CsjGW2sdRBTyrjO1J-Uqk)
But with my demo project, it does not work fine for the big log:
![image](https://private-user-images.githubusercontent.com/19745536/318069282-f9278d9c-6e49-46b0-b429-f44dce6b8419.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzM0NzIsIm5iZiI6MTczOTEzMzE3MiwicGF0aCI6Ii8xOTc0NTUzNi8zMTgwNjkyODItZjkyNzhkOWMtNmU0OS00NmIwLWI0MjktZjQ0ZGNlNmI4NDE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIwMzI1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjOTI3NTEwMGQ5MzdiYWVhNDZhZjdmZjFmYzk0NDBhNGFlYjlmYzJkOWU1MDQ3NWJmMzg3YTY0ZWM5ZmVkMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zbLzyvAeBO8zsdsZUHjMP5wchGzGK7FrrQ0FgFT6emM)
After I change from height to width, it works fine: AlistGo/alist#6282
The text was updated successfully, but these errors were encountered: