diff --git a/README.md b/README.md index 41dfc63..d6dba3c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ -# markdown-raw +# markdown.raw() -CSS style to make HTML look like raw markdown \ No newline at end of file +> CSS style to make HTML look like raw markdown + +- leading symbols are unshifted +- right-to-left support +- uses CSS4 [`:is()`](https://developer.mozilla.org/en-US/docs/Web/CSS/:is#Browser_compatibility) +- default color theme is monokai +- css-code itself is [haskell-styled](https://en.wikipedia.org/wiki/Indentation_style#Haskell_style) +- includes some [extended markdown syntax](https://markdownguide.org/extended-syntax/) + +## preview +- live: https://dym.sh/markdown-raw/live/ +- codepen: https://codepen.io/dym-sh/pen/XWKbYVP/left/?editors=1100 + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..3a2d123 --- /dev/null +++ b/index.html @@ -0,0 +1,479 @@ + + +
+ markdown.raw() – CSS style to make HTML look like raw markdown
+ uses CSS4 :is() + more info on github + + |
+
+
+|
---|---|
left-to-right + | right-to-left + |
+ h1 – blockquote, abbr++ blockquote ++ h2 – a, abbr, img+ + + + + +h3 – code, b, i, u, s, del, ins+
+some text around bold bold +italics italics +uinderlined uinderlined +
inserted inserted +
h4 – lists+
h5 – inputs, labels, other form-elements+ +
+
+ I have keys but no doors. I have space but no room. You can enter but can’t leave. What am I?+ A keyboard. +h6 – aside, and the rest+ +long random text The HTML aside element represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes. +some inline citation, not a blockquote ++ Mini Ketchup, + Jumbo Ketchup, + Mega Jumbo Ketchup + +validator +Ctrl+Shift+R +Several species of salamander inhabit the temperate rainforest of the Pacific Northwest. +
明日 +Fernstraßen The volume of a box is l × w × h, where l represents the length, w the width and h the height of the box. ++ text below hr + a2 + b2 = c2 +Almost every developer's favorite molecule is + C8H10N4O2, also known as "caffeine." + |
+
+
+
+ h1 – blockquote, abbr++ blockquote ++ h2 – a, abbr, img+ + + + + +h3 – code, b, i, u, s, del, ins+
+some text around bold bold +italics italics +uinderlined uinderlined +
inserted inserted +
h4 – lists+
h5 – inputs, labels, other form-elements+ +
+
+ I have keys but no doors. I have space but no room. You can enter but can’t leave. What am I?+ A keyboard. +h6 – aside, and the rest+ +long random text The HTML aside element represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes. +some inline citation, not a blockquote ++ Mini Ketchup, + Jumbo Ketchup, + Mega Jumbo Ketchup + +validator +Ctrl+Shift+R +Several species of salamander inhabit the temperate rainforest of the Pacific Northwest. +
明日 +Fernstraßen The volume of a box is l × w × h, where l represents the length, w the width and h the height of the box. ++ text below hr + a2 + b2 = c2 +Almost every developer's favorite molecule is + C8H10N4O2, also known as "caffeine." + |