Can't get code block language dropdown to appear in Angular #1246
shadow1349
started this conversation in
General
Replies: 1 comment 2 replies
-
Hello, would you like to try my project https://github.com/ousc/ng-milkdown? this is the code-block component, and live demo: https://ousc.github.io/ng-milkdown/#/work-ground. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
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
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions