V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

快要 2021 年了,有什么新的推荐的 Python 的 Markdown 库么?

  •  
  •   Livid · 2020-11-28 10:31:31 +08:00 · 2873 次点击
    这是一个创建于 1238 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如能支持表格的?
    11 条回复    2022-08-02 07:33:33 +08:00
    zhuangzhuang1988
        1
    zhuangzhuang1988  
       2020-11-28 10:47:55 +08:00
    不直接 reStructuredText ?
    laike9m
        2
    laike9m  
       2020-11-28 10:48:48 +08:00
    自己写一个(
    Livid
        3
    Livid  
    MOD
    OP
       2020-11-28 10:49:09 +08:00
    @zhuangzhuang1988 让 V2EX 的主题发帖能支持 RST 或许也是一个有趣的尝试。
    learningman
        4
    learningman  
       2020-11-28 11:50:10 +08:00
    别吧。。。不会 RST
    37Y37
        5
    37Y37  
       2020-11-28 11:55:21 +08:00 via Android
    @Livid 现在的确实不太好用,尤其是发代码,图片这样的,很多人摸不清规则,求换个好用的
    guyskk0x0
        6
    guyskk0x0  
       2020-11-28 16:07:20 +08:00
    直接把 CSV 渲染成表格怎么样? Markdown 的表格太难写了。
    https://jekyllrb.com/tutorials/csv-to-table/

    ```csv
    head1,head2,head3
    12,34,56
    23,45,67
    ```
    phithon
        7
    phithon  
       2020-11-28 17:45:10 +08:00
    phithon
        8
    phithon  
       2020-11-28 17:46:18 +08:00
    no1xsyzy
        9
    no1xsyzy  
       2020-12-03 22:07:33 +08:00
    调用外部进程 pandoc,甚至可以支持 RST 、docx 、html 、textile 、roff 、mediawiki 等各种输入(划去
    表格我觉得不如 data frame literal……
    fghzpqm
        10
    fghzpqm  
       2021-09-13 16:22:37 +08:00   ❤️ 1
    Livid
        11
    Livid  
    MOD
    OP
       2022-08-02 07:33:33 +08:00
    从 GitHub 的 cmark-gfm 的 README 里发现了这个:

    https://pypi.org/project/paka.cmark/

    GitHub 官方的实现:

    https://github.com/github/cmark-gfm
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5151 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:17 · PVG 16:17 · LAX 01:17 · JFK 04:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.