The problem is, it is supposed to convert the following
1. And there are numbererd lists too.
1. Use just 1s if you want!
1. But the list goes on...
- Even if you use dashes or asterisks.
* And last but not least, let's not forget embedded images:
into this:
1. And there are numbererd lists too.
2. Use just 1s if you want!
3. But the list goes on...
4. Even if you use dashes or asterisks.
5. And last but not least, let's not forget embedded images:
But this is not working clearly.
I have used Marked.js.
I am not understanding the documentation properly about how to add target="_blank" in the links.
The ordered list functionality @aoni_k mentioned is taken directly from the project example for the certification. That is called lazy list numbering. Lazy list numbering is mentioned about 3 examples down in the list section in this reference: https://daringfireball.net/projects/markdown/syntax#list
This seems to conflict with the GFM example 281 and 282 in this reference here: https://github.github.com/gfm/#lists
According to GFM syntax, there should be an ordered list and 2 unordered lists, since the list switches list markers which should create a new list each time. Also, instead of a . period you can use ) right parenthesis for ordered list which does not work in the FCC demo. Not sure what to go by or if it even matters since my project already passed 8/8 tests even tho I’m not finished with the project.
The bonus requirement mentioned as the second part of the question has apparently been removed from the project.
And here is a link to my repo to compare the output: https://github.com/jywillia/react-markdown-previewer
Keep in mind it’s a work in progress, just hashing out the functionality before I organize it and clean up the styling. Thanks in advance for any feedback.