-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to improve the css and fixed the jsdelivr link
- Loading branch information
adi
committed
Feb 21, 2021
1 parent
a9c804a
commit 497124e
Showing
4 changed files
with
22 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
*Import from CDN* | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/[email protected].3/src/wc-code.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/[email protected].4/src/wc-code.js"></script> | ||
``` | ||
|
||
## Usage NOTE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,24 +6,20 @@ | |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-markdown@1/index.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/[email protected]/build/index.js"></script> | ||
<link rel="stylesheet" href="https://fonts.xz.style/serve/inter.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/[email protected]/new.min.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<style> | ||
article{ | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 700px; | ||
} | ||
</style> | ||
<article> | ||
<h1>wc-code</h1> | ||
<p>cool ways to show code</p> | ||
</header> | ||
<article> | ||
<wc-markdown> | ||
<script type="wc-content"> | ||
# Note | ||
this content was written in [new.css][new-css-link] | ||
and with the help of [wc-markdown][wc-markdown-link] | ||
|
||
[new-css-link]: https://newcss.net/ | ||
[wc-markdown-link]: https://github.com/vanillawc/wc-markdown | ||
|
||
# wc-code elements | ||
`<wc-code>` elements are elements that allow you to present your | ||
code with a rich feature of options | ||
|
@@ -44,8 +40,7 @@ <h3>JavaScript usage -</h3> | |
var url = "https://sv443.net/jokeapi/v2/joke/Any?blacklistFlags=nsfw,racist,sexist&format=txt" | ||
var resp = await fetch(url); | ||
var text = await resp.text(); | ||
console.log(text); | ||
|
||
console.log(text); | ||
</script> | ||
</wc-code> | ||
<h3>Python usage -</h3> | ||
|
@@ -54,8 +49,7 @@ <h3>Python usage -</h3> | |
<script type="wc-content"> | ||
a = 1 | ||
b = 5 | ||
print(a, b, a+b) | ||
|
||
print(a, b, a+b) | ||
</script> | ||
</wc-code> | ||
<wc-markdown highlight> | ||
|
@@ -119,4 +113,4 @@ <h3>Python usage -</h3> | |
</wc-code-zone> | ||
</article> | ||
</body> | ||
</html> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters