AMP HTML 上で、Pygments
の
横に
スクロールできるようにした
以下、
How to support scrolling when using pygments with Jekyll - Stack Overflow
pre タグに
css 記載と
// -- selector prefixed to the wrapper div for collision prevention .highlight pre code * { white-space: nowrap; // this sets all children inside to nowrap } .highlight pre { overflow-x: auto; // this sets the scrolling in x } .highlight pre code { white-space: pre; // forces <code> to respect <pre> formatting }
これで、
以上です。
コメント