issues
search
mithi
/
epic-react-exercises
Practical React exercises with detailed solutions.
https://epic-react-exercises.vercel.app
Apache License 2.0
159
stars
37
forks
source link
Convert markdown to js + page structure + css styles
#1
Closed
mithi
closed
3 years ago
mithi
commented
3 years ago
Deleted some dummy code
Improve css stylings
Add page content to react hooks
Remove
yarn.lock
because we are using
package.lock
Add page structure for each section
Markdown content to jsx
Add temporary method for converting markdown content to jsx
use python to markdown 2:
https://github.com/trentm/python-markdown2
had to add pygment and a css style to style the code (
https://github.com/trentm/python-markdown2
)
use
dangerouslySetHtml
IMPORTANT: This method is not a good idea. Here are some ways I could try to replace this:
http://geekhmer.github.io/blog/2018/03/29/import-markdown-files-and-serve-its-content-in-next-dot-js/
https://nextjs.org/blog/markdown
https://stackoverflow.com/questions/47954367/import-markdown-files-as-strings-in-next-js
https://www.npmjs.com/package/marksy
https://nextjs-prism.vercel.app/prism
yarn.lock
because we are usingpackage.lock
Markdown content to jsx
dangerouslySetHtml