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

请教一个 Parsedown 的问题

  •  
  •   ddllzz · Jul 30, 2020 · 1035 views
    This topic created in 2109 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   ·   1607 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 16:39 · PVG 00:39 · LAX 09:39 · JFK 12:39
    ♥ Do have faith in what you're doing.