Skip to content

Commit

Permalink
v3.0.3 doc: update README.md e94372a
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 16, 2024
1 parent 0af1635 commit 0c25ccb
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 47 deletions.
18 changes: 9 additions & 9 deletions badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 84 additions & 4 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
[data-color-mode*='dark'],
[data-color-mode*='dark'] body {
--color-header-bg: #3a3a3a8f;
--color-header-border: #21262d;
--color-header-border: #21262d7a;
--color-hover: #ffffff1c;
--color-hoc-bg: #fffefe08;

--color-border-default: #d0d7de;
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-danger-fg: #d1242f;
--color-danger-emphasis: #cf222e;
--color-attention-fg: #9a6700;
--color-attention-emphasis: #9a6700;
--color-done-fg: #8250df;
--color-done-emphasis: #8250df;
--color-success-fg: #1a7f37;
--color-success-emphasis: #1f883d;
}

[data-color-mode*='light'],
[data-color-mode*='light'] body {
--color-header-bg: #ffffff52;
--color-header-border: #d3d3d3;
--color-header-border: #0000001c;
--color-hover: #0000001a;
--color-hoc-bg: #00000008;

--color-border-default: #30363d;
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-danger-fg: #f85149;
--color-danger-emphasis: #da3633;
--color-attention-fg: #d29922;
--color-attention-emphasis: #9e6a03;
--color-done-fg: #a371f7;
--color-done-emphasis: #8957e5;
--color-success-fg: #3fb950;
--color-success-emphasis: #238636;
}

*,
Expand Down Expand Up @@ -212,10 +236,10 @@ section.article-footer a {
align-items: center;
}

section.article-footer .edit-button {
.edit-button {
padding-right: 8px;
}
section.article-footer .edit-button svg {
.edit-button svg {
height: 15px;
margin-right: 6px;
}
Expand Down Expand Up @@ -256,3 +280,59 @@ section.article-footer .atime {
color: var(--color-fg-muted);
font-size: 14px;
}

.markdown-alert {
border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
color: inherit;
margin-bottom: 16px;
padding: 0.5rem 1em;
}
.markdown-alert > :last-child {
margin-bottom: 0 !important;
}
.markdown-alert .markdown-alert-title {
align-items: center;
display: flex;
font-size: 14px;
font-weight: 500;
line-height: 1;
}
.markdown-alert .markdown-alert-title svg.octicon {
margin-right: 8px !important;
margin-right: var(--base-size-8, 8px) !important;
}
.markdown-alert.markdown-alert-note {
border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
}
.markdown-alert.markdown-alert-note .markdown-alert-title {
color: var(--color-accent-fg);
color: var(--fgColor-accent, var(--color-accent-fg));
}
.markdown-alert.markdown-alert-tip {
border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));
}
.markdown-alert.markdown-alert-tip .markdown-alert-title {
color: var(--color-success-fg);
color: var(--fgColor-success, var(--color-success-fg));
}
.markdown-alert.markdown-alert-important {
border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));
}
.markdown-alert.markdown-alert-important .markdown-alert-title {
color: var(--color-done-fg);
color: var(--fgColor-done, var(--color-done-fg));
}
.markdown-alert.markdown-alert-warning {
border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
}
.markdown-alert.markdown-alert-warning .markdown-alert-title {
color: var(--color-attention-fg);
color: var(--fgColor-attention, var(--color-attention-fg));
}
.markdown-alert.markdown-alert-caution {
border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
}
.markdown-alert.markdown-alert-caution .markdown-alert-title {
color: var(--color-danger-fg);
color: var(--fgColor-danger, var(--color-danger-fg));
}
37 changes: 19 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<title>rehype-attr rehype-attr 3.0.3</title>
<meta name="description" content="New syntax to add attributes to Markdown. rehype-attr like remark-attr">
<meta name="keywords" content="attributes,rehype,markdown,rehype-attr,javascript,html,ast,unified">
<link rel="stylesheet" type="text/css" href="css/main.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/tocbot.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/media.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/sidebar.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/copy.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/demo-preview.css?v=1.26.6">
<link rel="stylesheet" type="text/css" href="css/main.css?v=1.29.0">
<link rel="stylesheet" type="text/css" href="css/tocbot.css?v=1.29.0">
<link rel="stylesheet" type="text/css" href="css/media.css?v=1.29.0">
<link rel="stylesheet" type="text/css" href="css/sidebar.css?v=1.29.0">
<link rel="stylesheet" type="text/css" href="css/copy.css?v=1.29.0">
<link rel="stylesheet" type="text/css" href="css/demo-preview.css?v=1.29.0">
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAEIlJREFUeF7tnXtwVNUdx3/n7kIe8sgTNEjLTMeAUrVUKB0U0f6D1ZkKCqhBJKDSdjplHEnW6B8l0hZIQKBaq+KMQDvTOhYfnY5jpU7rg9pp0Y5aSysKA4SEAJJNIJjdkN3TOWuigcnuub97727u2fu9MzuJ7ve8vt/72XPP2XCvIBxwAA6kdUDAGzgAB9I7AEBwdsCBDA4AEJwecACA4ByAA84cwAzizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMAQDizDeUCogDACQgQWOYzhwAIM58Q6mAOABAAhI0hunMgawC0tTU9DgRLRRCVDrrHqtUBxFFiSj1U0rZYVlWRzKZVP+v3bKsViJqi8fjbX19fa2NjY1JVu0BFG/atKlMSlmRSCQqhRAVRFQhpVRZqt9TP6WUJUR0wcBLCDHweyhHlm1PJBI7Hnzwwdez0V7WAGlubpbZ6LCHdbYLIVqllB8JIf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biEwbbckAkrat7lo9525a4X8QGpHh751VJonc4jUCb3gG1kbGi4yUqT3SdI1LrDbXuwOGZA/tiZ3qvoh+N6+bUyAZEVV60LfqoFOLHnIagTe9AVd+ntKLjRbL6/5LofwVfpd+OnQvLvHRAyutjy0pf51bpCBDViJ2/yeJ2Jsj6ge+NWkaMp+0lN2V+UlKQjXIwdinEyvjSsY85KJrpn1/pqyt65tQsaSWXE4lvE8mp+hJQZHJg9mfv0fuFl9Ap6wIY5d6B16VaCoTEU/ElYz9xWp3jGcRpg/lSrnBH559IkinXQaditSVj88X7XI4DgDh0u/A3p2ZTIvmmw+K5LeZg/z+3HfRvawDERTYF26MvChLzXFSRg6LiP7HasV/PQUN52QQAcRFr8Y7otKQULxHRV1xUk9WiQtKinmUlv89qI3lcOQBxGW7hM53fIYv+SETFLqvyvDjgcG8pAHHvIRX9OnpLUorFQtK1RFThQZXOq5B0jAT9VUh6ATOHcxsHSgIQ9x6eU0PqsitJw7JjlLRGdPQuHfWBx0MKdHUAJNDxY/A6BwCIziG8H2gHAEig48fgdQ4AEJ1DeD/QDgCQQMePwescACA6h/B+oB0AIIGOH4PXOQBAdA7h/UA7AEACHT8Gr3MAgOgcwvuBdgCABDp+DF7nAADROYT3A+0AAAl0/Bi8zgEAonMI7wfaAQAS6PgxeJ0DAETnEN4PtAMAJNDxY/A6BwCIziG8H2gH/g8LPRyq8vuk8QAAAABJRU5ErkJggg==" type="image/x-icon">
<script src="js/copy.js?v=1.26.6"></script>
<script src="js/dark-mode.js?v=1.26.6"></script>
<script src="js/markdown-style.js?v=1.26.6"></script>
<script src="js/copy.js?v=1.29.0"></script>
<script src="js/dark-mode.js?v=1.29.0"></script>
<script src="js/markdown-style.js?v=1.29.0"></script>
</head>
<body id="idoctotop"><a href="#idoctotop" class="gototop">top</a>
<header class="header">
Expand All @@ -37,7 +37,7 @@
</article>
</header>
<div class="warpper-content warpper">
<markdown-style>
<markdown-style theme-auto-switch-disabled="">
<h1 id="rehype-attr"><a aria-hidden="true" tabindex="-1" href="#rehype-attr" class="anchor"><span class="icon icon-link"></span></a>rehype-attr</h1>
<p>
<a href="https://jaywcjlove.github.io/#/sponsor"><img src="https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee" alt="Buy me a coffee"></a>
Expand Down Expand Up @@ -377,11 +377,7 @@ <h2 id="related"><a aria-hidden="true" tabindex="-1" href="#related" class="anch
<li><a href="https://github.com/jaywcjlove/rehype-video"><code>rehype-video</code></a> Add improved video syntax: links to <code>.mp4</code> and <code>.mov</code> turn into videos.</li>
<li><a href="https://github.com/jaywcjlove/rehype-rewrite"><code>rehype-rewrite</code></a> Rewrite element with rehype.</li>
<li><a href="https://github.com/jaywcjlove/rehype-ignore"><code>rehype-ignore</code></a> Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML.</li>
<li><a href="https://github.com/rehypejs/rehype"><code>rehypejs</code></a> HTML processor powered by plugins part of the @unifiedjs collective</li>
<li><a href="https://www.npmjs.com/package/remark-parse"><code>remark-parse</code></a> remark plugin to parse Markdown</li>
<li><a href="https://www.npmjs.com/package/remark-rehype"><code>remark-rehype</code></a> remark plugin to transform to rehype</li>
<li><a href="https://www.npmjs.com/package/rehype-raw"><code>rehype-raw</code></a> rehype plugin to reparse the tree (and raw nodes)</li>
<li><a href="https://www.npmjs.com/package/rehype-stringify"><code>rehype-stringify</code></a> rehype plugin to serialize HTML</li>
<li><a href="https://github.com/jaywcjlove/remark-github-blockquote-alert"><code>remark-github-blockquote-alert</code></a> Remark plugin to add support for <a href="https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts">GitHub Alert</a></li>
</ul>
<h2 id="contributors"><a aria-hidden="true" tabindex="-1" href="#contributors" class="anchor"><span class="icon icon-link"></span></a>Contributors</h2>
<p>As always, thanks to our amazing contributors!</p><a href="https://github.com/jaywcjlove/rehype-attr/graphs/contributors"><img src="https://jaywcjlove.github.io/rehype-attr/CONTRIBUTORS.svg"></a>
Expand Down Expand Up @@ -447,8 +443,13 @@ <h2 id="license"><a aria-hidden="true" tabindex="-1" href="#license" class="anch
</aside>
</nav>
</div>
<script src="js/demo-preview.js?v=1.26.6"></script>
<div class="footer warpper">Released under the MIT License. Copyright © 2023 Kenny Wong<br>Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v1.26.6</div>
<script src="js/tocbot.js?v=1.26.6"></script>
<script src="js/demo-preview.js?v=1.29.0"></script>
<div class="footer warpper">
<a href="https://wangchujiang.com/#/contact" target="_blank">Contact</a>
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a>
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a>
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br><br>Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v1.29.0
</div>
<script src="js/tocbot.js?v=1.29.0"></script>
</body>
</html>
61 changes: 51 additions & 10 deletions js/markdown-style.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Markdown Style
* @version 1.1.0
* @author 小弟调调
* https://github.com/jaywcjlove/markdown-style
*
* Integrate markdown styles into web components, Markdown CSS styles will not be conflicted.
* The minimal amount of CSS to replicate the GitHub Markdown style. Support dark-mode/night mode.
*/
const octiconLinkStyle = `
markdown-style h1:hover a.anchor .icon-link:before,
markdown-style h2:hover a.anchor .icon-link:before,
Expand Down Expand Up @@ -110,7 +119,7 @@ ${octiconLinkStyle}
markdown-style {
display: block;
-webkit-text-size-adjust: 100%;
font-family: -apple-system,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
Expand Down Expand Up @@ -579,6 +588,35 @@ markdown-style sup>a::after {
content: "]";
}
.markdown-body .octicon-video {
border: 1px solid #d0d7de !important;
border-radius: 6px !important;
display: block;
}
markdown-style .octicon-video summary {
border-bottom: 1px solid #d0d7de !important;
padding: 8px 16px !important;
cursor: pointer;
}
markdown-style .octicon-video > video {
display: block !important;
max-width: 100% !important;
padding: 2px;
box-sizing: border-box;
border-bottom-right-radius: 6px !important;
border-bottom-left-radius: 6px !important;
}
markdown-style details.octicon-video:not([open])>*:not(summary) {
display: none !important;
}
markdown-style details.octicon-video:not([open]) > summary {
border-bottom: 0 !important;
}
markdown-style h1 .octicon-link,
markdown-style h2 .octicon-link,
markdown-style h3 .octicon-link,
Expand Down Expand Up @@ -962,6 +1000,13 @@ markdown-style ::-webkit-calendar-picker-indicator {
<slot></slot>
`;
class MarkdownStyle extends HTMLElement {
get theme() {
const value = this.getAttribute('theme');
return value === null ? '' : value;
}
set theme(name) {
this.setAttribute('theme', name);
}
constructor() {
super();
this.shadow = this.attachShadow({ mode: 'open' });
Expand All @@ -978,14 +1023,11 @@ class MarkdownStyle extends HTMLElement {
}
}
}
get theme() {
const value = this.getAttribute('theme');
return value === null ? '' : value;
}
set theme(name) {
this.setAttribute('theme', name);
}
connectedCallback() {
const disableThemeAutoSwitch = this.getAttribute('theme-auto-switch-disabled');
if (disableThemeAutoSwitch == "" || disableThemeAutoSwitch && disableThemeAutoSwitch.toLowerCase() === 'true') {
return;
}
if (!this.theme) {
const { colorMode } = document.documentElement.dataset;
this.theme = colorMode;
Expand All @@ -1002,5 +1044,4 @@ class MarkdownStyle extends HTMLElement {
}
}
}
customElements.define('markdown-style', MarkdownStyle);
//# sourceMappingURL=index.js.map
customElements.define('markdown-style', MarkdownStyle);
4 changes: 2 additions & 2 deletions lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>All files</h1>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-11-26T11:20:24.270Z
at 2024-03-16T06:03:59.305Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 0c25ccb

Please sign in to comment.