fix: css, tor logo add: tprog manifesto and logo

This commit is contained in:
2024-08-07 17:46:02 +02:00
parent 3ece163bb2
commit 45dbb44d31
8 changed files with 587 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
# Script used to convert t/prog manifesto from md to txt
import sys
import re
if len(sys.argv) != 2 :
print(f"Usage: python {sys.argv[0]} file.md")
def keep_bracket_content(text):
pattern = r'\[(.*?)\]\(.*?\)'
new_text = re.sub(pattern, r'\1', text)
return new_text
with open(sys.argv[1], "r") as f :
with open("out.txt", "w") as o :
for l in f.readlines() :
l = l.replace("**", "")
i = 0
for i in range(len(l)) :
if l[i] != '#' and l[i] != ' ':
break
l = l[i:]
l = keep_bracket_content(l)
o.write(l)