hexo-renderer-marked
hexo-renderer-marked copied to clipboard
Why are they(`<`, `>`) treated differently ?
This a test post: source/_posts/test.md
:
```bash
test >< >><< <name>
```.
hexo.extend.filter.register('after_post_render', (data) => {
console.log(data.content)
// ...
}
Here is the hexo log:
<pre>
<code class="language-bash">
<span class="token function">test</span>
<span class="token operator">></span>
<span class="token operator"><</span>
<span class="token operator">>></span>
<span class="token operator"><<</span>
<span class="token operator"><</span>
name
<span class="token operator">></span>
</code>
</pre>
So I used the the primitive marked
to handle this post content:
npx marked source/_posts/test.md -o test.html
<pre><code class="language-bash">test >< >><< <name></code></pre>
So what can I do for eliminating this, thx !
Some useful information
- hexo-renderer-marked: "2.0.0"