![]() Once activated, you can install the dependencies from the requirements.txt file via pip. We use Flask to serve the static files afterwards.īut before you install them, create a virtual environment to not mess up your Python installation: $ python -m venv. Markdown is a package, which allows you to transform your markdown code into HTML. We put them into a requirements.txt file. In order to follow the current article, you need to install a few packages. Note: The idea of a markdown to HTML generator for my articles is based on an implementation Anthony Shaw uses to generate his articles. The code used in all three parts is available on GitHub. Part 3 demonstrates how you can use the pipeline to produce your own RSS feeds ( link). ![]() Part 2 extends the implemented pipeline by a module used to compute the estimated reading time for a given article ( link).Part 1 (current article) presents the implementation of the whole generation pipeline ( link).In this article series, I want to show you how you can build your own markdown to HTML generator. Long story short, I implemented my own markdown to HTML generator and I really like it! However, some day, I came across the idea of writing my own markdown to HTML generator, which would eventually allow me to write my articles in markdown.įurthermore, extending it by features like estimated reading time would be easier. ![]() It was a pretty basic blog and I wrote all my articles in HTML. A few months ago, I wanted to serve my own blog instead of using websites like Medium.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |