convert html into corresponding to_markdown #2153
Unanswered
ManzerHa-Kore
asked this question in
Q&A
Replies: 1 comment
-
marked only converts markdown to html not the other way around. Turndown is an npm package that converts html into markdown. There is no "panel" element in markdown but since valid HTML is also valid markdown I think the correct markdown for that would be: <panel bgColor="deebff">
```java
let x= 1;let z= x+5;console.log("Hello ,",z)
```
</panel> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to convert "{panel:bgColor=#deebff}\n* {code:java}let x= 1;let z= x+5;console.log("Hello ,",z){code}\n{panel}" into proper markdown, so that when markdown passed to marked(valid_Panel_markdown) converts a valid html to display the UI as it is in image.
What should be valid markdown for 'panel'.
marked(valid_Panel_markdown) gives desired html
Is marked.js have some vice-versa method to get valid markdown format when html passed.
Beta Was this translation helpful? Give feedback.
All reactions