Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide script tag in markdown on Github

I have this script tag in a markdown file:

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

I don't want it to display in the markdown, but it shows up like this:

enter image description here

Is there a way to hide the script tag so it doesn't display on Github?


1 Answers

You can hide content in markdown using HTML syntax:

<!-- Insert your script here and it won’t show up. -->
like image 94
mbb Avatar answered Nov 29 '25 23:11

mbb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!