ddllzz
V2EX  ›  问与答

请教一个 Parsedown 的问题

  •  
  •   ddllzz · Jul 30, 2020 · 1103 views
    This topic created in 2142 days ago, the information mentioned may be changed or developed.

    官方的 Demo 中,代码块中的关键字指定了 tokenkeyword 类,哪位大佬知道这是如何生成的。

    <pre class=" language-php">
    	<code class=" language-php">
    		<span class="token keyword">public</span> 
    	</code>
    </pre>
    

    目前我的代码是:

    $Parsedown = new \ParsedownExtra();
    
    echo $Parsedown->text('xxxx');
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1323 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:21 · PVG 01:21 · LAX 10:21 · JFK 13:21
    ♥ Do have faith in what you're doing.