Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 2 - Add initial support for Markdown (update) #8

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

kiennguyenchi
Copy link
Contributor

I updated some code to handle support feature for Markdown page input.
1/ In txt2html.js, I create an else-if in txt2html function to process the .md file. It will pass the text of .md file to an imported function generateFromMd() for converting purpose.
2/In generator.js, I create a function named generateFromMd() to convert .md file into .html file. Also, I add a convertToH1() function to convert all heading 1 into tag h1 in html. For other features in .md files have not been supported yet.
Basically, I haven't changed any code structure in your previous code. Please review my pull request carefully. Thank you!

@tcvan0707 tcvan0707 merged commit 8c89e2e into tcvan0707:main Sep 23, 2021
@tcvan0707
Copy link
Owner

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants