Obsidian Version 1.10.6
コードブロック関連のプラグインを入れても、編集モード中の折り返し無効がなかったりと不便だったので強制的に折り返すスタイルを書きました。
/** 【編集モード/Live Preview】 Markdownのコードブロック内の折り返しを無効化 */
.ͼ1 .cm-lineWrapping {
white-space: nowrap !important;
}
/** 【表示モード/Reading View】 Markdownのコードブロック内の折り返しを無効化 */
.markdown-rendered pre {
white-space: pre !important;
}
はみ出る形で表示されるが、横に長いコマンドのスクリプトを見やすく表示できるようになった。


