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

Adding the option to show latex code when clicking equation blocks #552

Open
Mapaor4 opened this issue May 6, 2024 · 0 comments
Open

Adding the option to show latex code when clicking equation blocks #552

Mapaor4 opened this issue May 6, 2024 · 0 comments

Comments

@Mapaor4
Copy link

Mapaor4 commented May 6, 2024

Description

Change of CSS to allow clicking a block equation and displaying the latex code (just as in Notion)

I am not sure how the repo behaves (I'm quite new here), but could it be that just requires changing the .notion-equation CSS attribute inside packages/react-notion-x/src/styles.css?

Codepen example

I created a minimal working example with codepen to show an example of CSS (and JS) that would allow for this functionality

Try it here: Equation block - click to show code (like Notion)

Forgive me if the code is not quite clean. I am new to both CSS and JS.

I would really appreciate if someone could look into this and tell me if it's possible to implement this function, it would be a game changer for the website I am trying to build. Tanks again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant