Skip to content
Discussion options

You must be logged in to vote

Currently not possible. #821 was the reason for the change indeed (before, everything could be changed which sometimes didn’t make sense; after, only markdown can be changed, which is sometimes not powerful enough but at least isn’t unexpected).
See also #1770.

  • Doesn’t tailwind have a “content” escape hatch to use normal css?
  • You can likely type <kbd className="bg-gray-300"> in your MDX, it should work for us and I’m assuming it works for your previewer.
  • You could use a rehype plugin to add classes (https://github.com/search?q=rehype+add+classes, or manually combine hast-util-select with hast-util-classnames)

I’m open to solutions in @mdx-js/mdx, but I have a bad feeling about going wit…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michaeloliverx
Comment options

Answer selected by michaeloliverx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants