V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
balabalaguguji
V2EX  ›  问与答

marked.js 表格前面必须要有空行才能渲染,如何破

  •  
  •   balabalaguguji · Jul 15, 2021 · 878 views
    This topic created in 1761 days ago, the information mentioned may be changed or developed.

    已经有人反馈这个问题了 https://github.com/markedjs/marked/issues/1733

    但似乎还没人解决,必须在表格前面加空行才能解析。

    有高人知道怎么解决吗?自己写 tokenizer 覆盖有点懵,这个比较复杂不知道怎么写。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3350 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:45 · PVG 20:45 · LAX 05:45 · JFK 08:45
    ♥ Do have faith in what you're doing.