Stefan4472 / Stefans-Blog

Personal blogging platform built in Python
MIT License
0 stars 0 forks source link

Create text-rendering module and remove custom markdown2 dependency #46

Closed Stefan4472 closed 2 years ago

Stefan4472 commented 2 years ago

In #38 I changed the rendering process to use a modified version of the markdown2 library. But actually, I now think there's a better solution that doesn't require changing the library (markdown should stay markdown):

If desired, we could even have <x-markdown> tag and <x-html> tags, for example, but that would require migrating all existing posts and I think default-Markdown rendering is a good idea.

This should also fix #40

Put this rendering code together into a separate Python module that we can import into both the backend and the CLI.

Stefan4472 commented 2 years ago

Merged and deployed.

Stefan4472 commented 2 years ago

Need to update the README and requirements.txt