コードプレビュー表示: aigis-codeblock の pre の入れ子
yomotsu opened this issue · comments
<pre>
<code class="lang-html">
<div class="aigis-codeblock aigis-codeblock--html">
<pre class="editor editor-colors">
<div class="line">...
になっていますが、
- code要素はフレージングしか内包できませんつまりdivを入れることはできないため、変えたほうがよさそうです *1
- preが二重になってしまっていました。ひとつでよさそうです
*1: http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element
markdownのパーサが外側のpre & code
を作りコードハイライトのライブラリが内側のpre
を作るので変更するの難しそう💁
rel: atom/highlights#26