xy2z / dopenote

📝 Self-hosted modern webapp for notes - Free and open source - (WORK IN PROGRESS)
https://dopenote.gitbook.io/docs/
GNU General Public License v3.0
24 stars 9 forks source link

Tiptap code highlight (npm) #103

Closed xy2z closed 4 years ago

xy2z commented 5 years ago

https://tiptap.scrumpy.io/code-highlighting - See bottom of page how to setup.

Use the default theme

Let me know if you have any questions.

MJunaidAhmad commented 4 years ago

And Working on this one too. :)

xy2z commented 4 years ago

I'm opening this up for others, since @MJunaidAhmad is working on #121

MJunaidAhmad commented 4 years ago

Since I have completed the Social login Feature so I am returning back to this one.

xy2z commented 4 years ago

@MJunaidAhmad how's it going? 😃

MJunaidAhmad commented 4 years ago

I have integrated the code block for now and its working... but somehow the css is not being applied by tiptap... image Since you already integrated the tiptap... so any guidance?

xy2z commented 4 years ago

I have fixed it, if you're interested to see how, see the webpack.mix file https://github.com/xy2z/dopenote/commit/06b6d0a03c1f48193f70f4b489f91fc97f58c689