Skip to content

Commit

Permalink
Cleanup Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jul 3, 2020
1 parent 9354420 commit 29073e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
<script type="module" src="../src/wc-markdown.js"></script>
<script type="module" src="../components/prism-c.js"></script>
<script type="module" src="../components/prism-cpp.js"></script>
<script>
function handleClick() {
document.getElementById('async').src = "sample.md";
}
</script>
</head>
<body>
<input type="button" onClick="handleClick()">

<!-- inline -->
<wc-markdown>
<script type="wc-content">
## Inline Markdown
Expand All @@ -23,12 +19,14 @@
</script>
</wc-markdown>

<!-- external -->
<wc-markdown src="sample.md"></wc-markdown>

<!-- syntax-highlighting -->
<wc-markdown src="sample2.md" highlight></wc-markdown>

<wc-markdown id="async" src="sample2.md" highlight></wc-markdown>

<!-- c++ syntax-highlighting -->
<wc-markdown src="sample3.md" highlight></wc-markdown>

</body>
</html>
2 changes: 2 additions & 0 deletions dev/sample3.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## C++ Syntax highlighting

```cpp
#include <iostream>
using namespace std;
Expand Down

0 comments on commit 29073e2

Please sign in to comment.