Commit 126bc2de authored by AP matsuo koji's avatar AP matsuo koji 😲

safe-mode-secure対応、GitLabでstyle関係の不要な文字列を表示を抑制

parent d2d304d9
...@@ -38,17 +38,38 @@ endif::[] ...@@ -38,17 +38,38 @@ endif::[]
// //
// ExtendStyleは常に有効とする。定義して、もう実行しておく。互換性:何回呼ばれても大丈夫。 // ExtendStyleは常に有効とする。定義して、もう実行しておく。互換性:何回呼ばれても大丈夫。
// 2026/1/25 :GitLabのレンダラーでパススルー部(<style>などのhtml加工)が、無視され、テキストとして表示
// される問題の対処。 GitLabのadoc表示ではかカスタマイズ部は無視されるが、不要なテキストを表示しないようにした
// safe-mode-secureブロックで囲む
// safe-mode-secure外を上に集約して、safe-mode-secureブロックを一つにする
// SCREEN Confidential
:HeadLine:
ifdef::SCREENConfidential[]
:SCREENGA: pass:q[image:SCREENGA.png[]]
:CONF: pass:q[image:Confidential.png[]]
:DocNo: Internal
:HeadLine: pass:n[{SCREENGA} [.right]##{DocNo} {CONF}##]
endif::SCREENConfidential[]
// :TocMode: WordWrap or ExpandWidth or Other None WordWrapが初期値
ifndef::TocMode[]
:TocMode: WordWrap
endif::TocMode[]
// safe-mode-secure(セキュアモードが定義が無いときのみ展開する)
ifndef::safe-mode-secure[] ifndef::safe-mode-secure[]
:ExtendStyle: pass:none[<style>.nw{display:inline-block;white-space:pre;} .nowrap{display:inline-block;white-space:pre;}</style>] :ExtendStyle: pass:none[<style>.nw{display:inline-block;white-space:pre;} .nowrap{display:inline-block;white-space:pre;}</style>]
{ExtendStyle} {ExtendStyle}
endif::safe-mode-secure[]
// Page幅を無効にする // Page幅を無効にする
ifndef::safe-mode-secure[]
ifdef::FreePage[] ifdef::FreePage[]
+++<style>#header,#content,#footnotes,#footer{max-width:none;}</style>+++ +++<style>#header,#content,#footnotes,#footer{max-width:none;}</style>+++
...@@ -58,23 +79,6 @@ ifndef::FreePage[] ...@@ -58,23 +79,6 @@ ifndef::FreePage[]
:FreePage: pass:none[<style>#header,#content,#footnotes,#footer{max-width:none;}</style>] :FreePage: pass:none[<style>#header,#content,#footnotes,#footer{max-width:none;}</style>]
endif::FreePage[] endif::FreePage[]
endif::safe-mode-secure[]
// SCREEN Confidential
:HeadLine:
ifdef::SCREENConfidential[]
:SCREENGA: pass:q[image:SCREENGA.png[]]
:CONF: pass:q[image:Confidential.png[]]
:DocNo: Internal
:HeadLine: pass:n[{SCREENGA} [.right]##{DocNo} {CONF}##]
endif::SCREENConfidential[]
ifndef::safe-mode-secure[]
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分 // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分
++++ ++++
<style> <style>
...@@ -211,17 +215,6 @@ img, .imageblock.bordered img { ...@@ -211,17 +215,6 @@ img, .imageblock.bordered img {
</style> </style>
++++ ++++
// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ // ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
endif::safe-mode-secure[]
// :TocMode: WordWrap or ExpandWidth or Other None WordWrapが初期値
ifndef::TocMode[]
:TocMode: WordWrap
endif::TocMode[]
ifndef::safe-mode-secure[]
ifeval::["{TocMode}" == "WordWrap"] ifeval::["{TocMode}" == "WordWrap"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment