fix(Highlight): remove <hidden> tags in code examples
This commit is contained in:
parent
5f9c951db4
commit
7fc3f406dd
|
@ -8,7 +8,9 @@
|
|||
export let alt;
|
||||
|
||||
let renderedCode;
|
||||
$: renderedCode = slice ? code.replace(/#<hidden>[^]*?#<\/hidden>/, "") : code;
|
||||
$: renderedCode =
|
||||
slice ? code.replace(/#<hidden>[^]*?#<\/hidden>/, "")
|
||||
: code.replace(/#(<hidden>|<\/hidden>)/g,"");
|
||||
</script>
|
||||
|
||||
<p class="sr-only">{alt}</p>
|
||||
|
|
Loading…
Reference in a new issue