dmac21
V2EX  ›  C

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

  •  
  •   dmac21 · Aug 30, 2018 · 2935 views
    This topic created in 2994 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
    SomeBottle
    Jan 29, 2021
    1
    你需要针对 pre,code 这两个标签加样式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4760 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:27 · PVG 11:27 · LAX 19:27 · JFK 22:27
    ♥ Do have faith in what you're doing.