Milkdown / examples

A list of examples to play with milkdown.
MIT License
32 stars 8 forks source link

Can't get code block language dropdown to appear #7

Closed shadow1349 closed 9 months ago

shadow1349 commented 9 months ago

Hey, I love the editor. I was just wondering how I could get the language dropdown to work for the code blocks in Angular. I copied the code from your website for the Angular example and I added prismjs to it along with the prism plugin. Another thing I noticed is that tailwindcss seems to continually override the styles unless I add the prose class from tailwind typography.

Here's a repo I made that simulates the issue.: https://github.com/shadow1349/milkdown-test

Thanks!

shadow1349 commented 9 months ago

As an added note, I found this example on codesandbox of it working in Angular. I know it's an older version of milkdown but I'm wondering how to get it to work like this in newer versions.

https://codesandbox.io/p/sandbox/milkdown-angular-setup-wowuy?file=%2Fsrc%2Fapp%2Fapp.component.ts

shadow1349 commented 9 months ago

Whoops I didn't realize I put this in the wrong place, sorry about that!