String to markdown

Problem: I have a paragraph string that is having multiple points I.e. ordered list and normal paragraphs before or after ordered list. It is not formatted. Is there way or any library I can use to easily identify paragraphs and lists and format it. I want to use this string to render a paragraph.
2 Replies
MarkBoots
MarkBoots13mo ago
can you show an example of the string and what it should look like after the format
clevermissfox
clevermissfox13mo ago
You want to format how your list items and paragraph LOOK on the page ? Like style them? If so : Adding a class/classes and styling those will be much faster and simpler than importing a library in my opinion. That’s also one more layer that you’re dependent on for your page to render; at least if I’m understanding you correctly. Or you want to format the string that is creating these html elements ? Maybe you’re looking for a template string? Could you copy your code into a codepen or git so we have more context when trying to assist ya 🫶🏻
Want results from more Discord servers?
Add your server