dmac21
V2EX  ›  C

bootstrap4 中使用 marked.js 或者 showdown.js 渲染出来的 markdown 代码块怎么才能正常显示?

  •  
  •   dmac21 · Aug 30, 2018 · 2825 views
    This topic created in 2884 days ago, the information mentioned may be changed or developed.

    渲染出来的

    <pre><code></code></pre>
    

    code 里面的内容都是黑字白底的,而不是灰底粉字的。。。

    1 replies    2021-01-29 14:45:11 +08:00
    SomeBottle
        1
    SomeBottle  
       Jan 29, 2021
    你需要针对 pre,code 这两个标签加样式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5281 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    ♥ Do have faith in what you're doing.