used markdown instead of markdown2
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
[paste.app_factory]
|
||||
main = caotek_mesavoirs:main
|
||||
[console_scripts]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user