how to connect markdown to html? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

how to connect markdown to html?

22nd Jul 2023, 5:43 PM
Niki
Niki - avatar
3 ответов
+ 2
For converting markdown to html, you have two options: 1- using premade modules or packages in your language! These packages are codes that others written for doing a specific thing like converting markdown to html and you can use them! 2- You can write a function to do that. I can't explain how to do this completely here, but a simple explanation is you open a file, read that file line by line and parse (or convert) every line of markdown to the html and concatenate all of html results together!
22nd Jul 2023, 6:29 PM
Mohammad Ebrahimi
Mohammad Ebrahimi - avatar
+ 2
What do you mean by "connect"? Here is a comparison. https://codingnconcepts.com/markdown/markdown-vs-html/
22nd Jul 2023, 5:51 PM
Tibor Santa
Tibor Santa - avatar
+ 2
Do you mean convert markdown to html?
22nd Jul 2023, 5:53 PM
Chris Coder
Chris Coder - avatar