Conditions | 2 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import random |
||
29 | def _load_readme(): |
||
30 | path = Path(current_app.config['ROOT'], 'README.md') |
||
31 | with path.open() as f: |
||
32 | text = f.read() |
||
33 | content = text.split('<!--content-->')[-1] |
||
34 | html = markdown(content, extensions=[ |
||
35 | 'markdown.extensions.tables', |
||
36 | 'pymdownx.magiclink', |
||
37 | ]) |
||
38 | return Markup(html) |
||
39 |