used markdown instead of markdown2

This commit is contained in:
2022-12-12 10:41:24 +01:00
parent b7aac74bd7
commit ec0d0ce262
5 changed files with 70 additions and 71 deletions

View File

@@ -2,11 +2,19 @@ Metadata-Version: 2.1
Name: caotek-mesavoirs
Version: 0.1
Summary: caotek_mesavoirs
Home-page: UNKNOWN
Home-page:
Author:
Author-email:
License: UNKNOWN
Description: # README #
Keywords: web wsgi bfg pylons pyramid
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Provides-Extra: testing
# README #
Cette application permet de :
@@ -65,10 +73,4 @@ Description: # README #
'twoHundredDayAverageChangePercent': 0.04785564, 'marketCap': 34460147712, 'priceToBook': 1.4602123, 'sourceInterval': 15,
'exchangeTimezoneName': 'America/New_York', 'exchangeTimezoneShortName': 'EDT', 'gmtOffSetMilliseconds': -14400000, 'triggerable': False,
'market': 'us_market', 'regularMarketPrice': 93.09, 'regularMarketTime': 1569614400, 'symbol': 'VNQ'}
Keywords: web wsgi bfg pylons pyramid
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Provides-Extra: testing

View File

@@ -1,4 +1,2 @@
[paste.app_factory]
main = caotek_mesavoirs:main
[console_scripts]

View File

@@ -7,11 +7,11 @@ pyramid_retry
pyramid_tm
SQLAlchemy
transaction
zope.sqlalchemy
zope.sqlalchemy==1.1
waitress
mysqlclient
yfinance
markdown2
markdown
[testing]
WebTest>=1.3.1

View File

@@ -161,10 +161,9 @@ def doc_view(request):
# insèrer le path de static/img
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
# convertir mardown en HTML
from markdown2 import Markdown
markdowner = Markdown()
texte = markdowner.convert(texte)
# convertir markdown en HTML
import markdown
texte = markdown.markdown(texte)
return {
'page_title': doc.intitule,

View File

@@ -22,7 +22,7 @@ requires = [
'waitress',
'mysqlclient',
'yfinance',
'markdown2',
'markdown',
]
tests_require = [