Skip to content

Commit

Permalink
Fix markdown fences when lang contain spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
acuarica committed Jan 5, 2024
1 parent 812c44d commit 81c319d
Showing 1 changed file with 82 additions and 75 deletions.
157 changes: 82 additions & 75 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,87 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>EVM.js</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="description"
content="A Symbolic library & CLI Ethereum Virtual Machine (EVM) interpreter and decompiler, along with several other utils for programmatically extracting information from bytecode"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css"
/>
<link rel="stylesheet" href="main.css" />

<!--
Unable to docsify's plugin https://docsify.js.org/#/plugins?id=google-analytics
with Brave Browsers, GA script is unable to load
GET https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/ga.min.js net::ERR_BLOCKED_BY_CLIENT
Switch to manually setup Global site tag (gtag.js) - Google Analytics
-->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-161877768-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-161877768-1');
</script>
</head>
<head>
<meta charset="UTF-8" />
<title>EVM.js</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description"
content="A Symbolic library & CLI Ethereum Virtual Machine (EVM) interpreter and decompiler, along with several other utils for programmatically extracting information from bytecode" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css" />
<link rel="stylesheet" href="main.css" />

<!--
Unable to docsify's plugin https://docsify.js.org/#/plugins?id=google-analytics
with Brave Browsers, GA script is unable to load
GET https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/ga.min.js net::ERR_BLOCKED_BY_CLIENT
Switch to manually setup Global site tag (gtag.js) - Google Analytics
-->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-161877768-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-161877768-1');
</script>
</head>

<body>
<div id="app">Loading...</div>
<script>
window.$docsify = {
name: 'EVM Bytecode Decompiler',
repo: 'acuarica/evm',
coverpage: true,
loadSidebar: true,
mergeNavbar: true, // https://docsify.js.org/#/configuration?id=mergenavbar
subMaxLevel: 3, // https://docsify.js.org/#/configuration?id=submaxlevel
<body>
<div id="app">Loading...</div>
<script>
window.$docsify = {
name: 'EVM Bytecode Decompiler',
repo: 'acuarica/evm',
coverpage: true,
loadSidebar: true,
mergeNavbar: true, // https://docsify.js.org/#/configuration?id=mergenavbar
subMaxLevel: 3, // https://docsify.js.org/#/configuration?id=submaxlevel

// routerMode: 'history', // default: 'hash'
// routerMode: 'history', // default: 'hash'

// https://docsify.js.org/#/plugins?id=full-text-search
search: {
placeholder: 'Search...',
// https://docsify.js.org/#/plugins?id=full-text-search
search: {
placeholder: 'Search...',
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
return (
html +
'\n----\n' +
'<small>Designed &amp; developed in Switzerland. Powered by <a href="https://docsify.js.org" target="_blank">docsify.js</a> and <a href="https://jhildenbiddle.github.io/docsify-themeable" target="_blank">docsify-themeable</a></small>'
);
});
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
return (
html +
'\n----\n' +
'<small>Designed &amp; developed in Switzerland. Powered by <a href="https://docsify.js.org" target="_blank">docsify.js</a> and <a href="https://jhildenbiddle.github.io/docsify-themeable" target="_blank">docsify-themeable</a></small>'
);
});
},
],
};
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
],

markdown: {
renderer: {
// https://docsify.js.org/#/markdown?id=supports-mermaid
code: function (code, lang) {
lang = lang.split(' ')[0];
return this.origin.code.apply(this, arguments);
}
}
}
};
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>

<!-- https://docsify.js.org/#/plugins?id=copy-to-clipboard -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>

<!-- https://docsify.js.org/#/plugins?id=copy-to-clipboard -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<!-- https://docsify.js.org/#/plugins?id=full-text-search -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>

<!-- https://docsify.js.org/#/plugins?id=full-text-search -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!-- docsify-themeable -->
<script src="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>

<!-- docsify-themeable -->
<script src="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<!-- https://jhildenbiddle.github.io/docsify-tabs/ -->
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>

<!-- https://jhildenbiddle.github.io/docsify-tabs/ -->
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<!-- https://docsify.js.org/#/language-highlight -->
<!-- https://prismjs.com/#supported-languages -->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>
</body>

<!-- https://docsify.js.org/#/language-highlight -->
<!-- https://prismjs.com/#supported-languages -->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>
</body>
</html>
</html>

0 comments on commit 81c319d

Please sign in to comment.