Skip to content

Instantly share code, notes, and snippets.

@darrenparkinson
Last active February 21, 2024 10:31
Show Gist options
  • Save darrenparkinson/64755a4c1407745e814bd399b3a46dad to your computer and use it in GitHub Desktop.
Save darrenparkinson/64755a4c1407745e814bd399b3a46dad to your computer and use it in GitHub Desktop.
Markdown Preview Enhanced
<!-- The content below will be included at the end of the <head> element. -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
// your code here
});
</script>
/* Please visit the URL below for more information: */
/* https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
// modify your style here
// eg: background-color: blue;
* {
font-family: "Noto Sans", sans-serif;
font-weight: 300;
}
// Numbered headings
// body {
// counter-reset: h2counter;
// }
// h1 {
// counter-reset: h2counter;
// }
// h2:before {
// content: counter(h2counter) ".\0000a0\0000a0";
// counter-increment: h2counter;
// counter-reset: h3counter;
// }
// h3:before {
// content: counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
// counter-increment: h3counter;
// }
// // To not number a specific heading use the nocount class
// h2.nocount:before {
// content: none;
// counter-increment: none;
// }
// h3.nocount:before {
// content: none;
// counter-increment: none;
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment