polubis / 4markdown

13 stars 2 forks source link

[Feature] Improve Code Element display in documents #229

Open polubis opened 3 months ago

polubis commented 3 months ago

Context

Currently, the code elements in documents appear extremely unreadable. Additionally, we always need to add javascript at the beginning of the code to enable syntax highlighting.

Remove this requirement and allow syntax highlighting for any code, regardless of the specified language.

Definition of Done (DoD)

  1. The code does not need a specific language to be added for syntax highlighting.
  2. The code looks significantly better, with a high contrast between the text and the background.
  3. There is an option to copy the code snippet via a special button.
  4. Follows: https://github.com/users/polubis/projects/4/views/8?pane=issue&itemId=58069469
polubis commented 3 months ago

https://github.com/polubis/4markdown/pull/231

polubis commented 3 months ago

Can be tested on development environment: https://soft-pithivier-093469.netlify.app/

KaminskiKrzysztof commented 3 months ago

Everything works fine! ✅

MajaWielechowska commented 3 months ago

💚 works fine