Skip to content

Instantly share code, notes, and snippets.

Avatar
🔬
Experimenting

clvs7 clvs7-gh

🔬
Experimenting
View GitHub Profile
@clvs7-gh
clvs7-gh / TABLE_SHORTCODE.md
Last active Jun 22, 2021
Table shortcode for hugo
View TABLE_SHORTCODE.md

A table shortcode for hugo. Until 0.60.0, Mmark was good option, convenient way in order to add any attributes to table. But from 0.60.0, mmark is marked as deprecated. On the other hand, new standard markdown parser, goldmark does not support that's way. So, I created a table shortcode for hugo. This shortcode supports both of markdown table and attributes.

Example usage:

{{< table id="sample" class="bordered" data-sample=10 >}}
|A|B|
|------|------|
View keybase.md

Keybase proof

I hereby claim:

  • I am clvs7-gh on github.
  • I am clvs7 (https://keybase.io/clvs7) on keybase.
  • I have a public key ASDkvoqsq5aY4rpRmKe8r0fUendbKvKeUCQx0dGVXXDZrAo

To claim this, I am signing this object:

@clvs7-gh
clvs7-gh / gist:d279ea09523b5c894e43198ee4150251
Last active Jan 22, 2020
Bookmarklet for viewing webpages with Saitamaar webfont.
View gist:d279ea09523b5c894e43198ee4150251
javascript:(function(){var d=document,s=d.createElement('style'),h=d.getElementsByTagName('head');s.setAttribute('type', 'text\/css');s.innerHTML='@font-face {font-family: "Saitamaar";src: url("https://keage.tokyo/fonts/Saitamaar.woff2") format("woff2");}* {font-family: "Saitamaar" !important;}';h[0].appendChild(s);})();