DEV Community

anshul137
anshul137

Posted on

DPS909 Blog :Static Site Generator(ag-ssg) Lab 3

Hey everyone, thanks for reading my Blog post.
In this post i am going to talk about the new features which i have added into my application.

Link to repository : ag-ssg.

Overview

In this lab we are supposed to add this feature in our current project.

  • Add an option -l, --lang flag, which indicates the language to use when generating the lang attribute on the root <html> element. For example, --lang fr would mean that the HTML documents are in French, and would include <html lang="fr">.
  • Add support for a horizontal rule in Markdown. The Markdown --- should get converted to an <hr> tag.

Requirements

  • This tool is built using the Node.js

Links to issues created by me in ag-ssg.

To get language feature working in my application, i have created the lang option in my app.js option which will allow the user to mention in which language they want to generate the particular page.
By default i have set the value of lang to be in en-Ca in index.js.

To convert the --- to in `html` i just have to search through the .md file and implement the if the search was successful.

Thanks
Enter fullscreen mode Exit fullscreen mode

Top comments (0)