Status prints

This commit is contained in:
2022-07-01 16:39:54 +02:00
parent 879e0766b4
commit e44b4a0d84
4 changed files with 36 additions and 33 deletions

View File

@ -12,6 +12,7 @@
from Libs.bs4 import BeautifulSoup
from Modules.Utils import *
"""
ClosedTags = (
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
'p', 'span', 'pre', 'code',
@ -20,6 +21,7 @@ ClosedTags = (
'ol', 'ul', 'li', 'dl', 'dt', 'dd')
OpenTags = (
'img')
"""
def GemtextCompileList(Pages):
Cmd = ''
@ -41,6 +43,7 @@ def ParseTag(Content):
Parse = BeautifulSoup(str(Content), 'html.parser')
Tag = Parse.find()
"""
def HTML2Gemtext(Pages, SiteName, SiteTagline):
#os.mkdir('public.gmi')
for File, Content, Titles, Meta, HTMLContent, Description, Image in Pages:
@ -78,20 +81,4 @@ def HTML2Gemtext(Pages, SiteName, SiteTagline):
PagePath = 'public.gmi/{}.gmi'.format(StripExt(File))
WriteFile(PagePath, Gemtext)
#exit()
""" Gemtext:
# h1
## h2
### h3
* li
* li
=> [protocol://]URL Link Description
> Quote
```
Preformatted
```
"""