fix: bold in text not working + sorted data not passed to functions
This commit is contained in:
parent
572b4ef237
commit
65b69b5efa
@ -78,13 +78,6 @@ tags: new year, happy, test
|
|||||||
|
|
||||||
This project only has `python-dotenv` as dependencies for loading environment variable into python.
|
This project only has `python-dotenv` as dependencies for loading environment variable into python.
|
||||||
|
|
||||||
## Trouble & help
|
|
||||||
|
|
||||||
If you have any troube you can contact me by email, matrix, or open an issue. If you are a beginner prefer using email, thanks.
|
|
||||||
|
|
||||||
- Email: oxbian.noch@simplelogin.com
|
|
||||||
- Matrix: @oxbian:matrix.org
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is under the GPLV3 license. You can use, modify, as long as the copy is opensource under the GPLV3 too.
|
This project is under the GPLV3 license. You can use, modify, as long as the copy is opensource under the GPLV3 too.
|
||||||
|
@ -179,8 +179,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# Generating atom feed
|
# Generating atom feed
|
||||||
print(f"{color['green']}Generating RSS / Atom feed in {lang} {color['end']}")
|
print(f"{color['green']}Generating RSS / Atom feed in {lang} {color['end']}")
|
||||||
generate_atom_feed(data, env_vars)
|
generate_atom_feed(sorted_data, env_vars)
|
||||||
|
|
||||||
# Generating index
|
# Generating index
|
||||||
print(f"{color['green']}Generating main page in {lang} :{color['end']}")
|
print(f"{color['green']}Generating main page in {lang} :{color['end']}")
|
||||||
generate_index(data, env_vars)
|
generate_index(sorted_data, env_vars)
|
||||||
|
@ -11,12 +11,13 @@ def parse_line(line):
|
|||||||
html.escape(line)
|
html.escape(line)
|
||||||
|
|
||||||
# Checking if there is strong or emphasized
|
# Checking if there is strong or emphasized
|
||||||
while "*" in line:
|
|
||||||
line = line.replace("*", "<em>", 1)
|
|
||||||
line = line.replace("*", "</em>", 1)
|
|
||||||
while "**" in line:
|
while "**" in line:
|
||||||
line = line.replace("**", "<strong>", 1)
|
line = line.replace("**", "<strong>", 1)
|
||||||
line = line.replace("**", "</strong>", 1)
|
line = line.replace("**", "</strong>", 1)
|
||||||
|
while "*" in line:
|
||||||
|
line = line.replace("*", "<em>", 1)
|
||||||
|
line = line.replace("*", "</em>", 1)
|
||||||
|
|
||||||
|
|
||||||
# Checking if there is image
|
# Checking if there is image
|
||||||
while "![" in line and "]" in line:
|
while "![" in line and "]" in line:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user