在Github上的markdown中隐藏脚本标记

问题描述 投票:0回答:1

我在markdown文件中有这个脚本标记:

<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autoload=true&lang=java"></script>

我不希望它在降价显示,但它显示如下:

enter image description here

有没有办法隐藏脚本标签,以便它不会显示在Github上?

github markdown github-flavored-markdown
1个回答
1
投票

您可以使用HTML语法在markdown中隐藏内容:

<!-- Insert your script here and it won’t show up. -->
© www.soinside.com 2019 - 2024. All rights reserved.