ブロックのために値下げを無効にします
-
22-08-2019 - |
質問
マークダウン構文は、ブログやコメントを書き込むことが便利であることが多いです。
しかし、あなたは単純なHTMLを書きたいと思うときの回で、それはコンテンツと干渉する
pre
のhtmlタグのようにその部分を無視するように値下げを要求するタグ/構文はありますか?
前の作品であれば、どのような値下げ部分はhtmlタグを含める必要がある場合?
解決
は<div>
を使用できるように値引き(グルーバーによって)とPHP値引きの元の実装は、例えば、ブロックレベルのHTML要素の内部にフォーマットしない
Markdown text.
More markdown text.
<div>
Markdown ignores inside the div, you can do all sorts of crazy stuff:
<a href="http://www.stackoverflow.com">Stack Overflow</a>.
<blink>Is blink still supported?</blink>
</div>
Yet more markdown text.
としてレンダリングされます
<p>Markdown text.</p>
<p>More markdown text.</p>
<div>
Markdown ignores inside the div, you can do all sorts of crazy stuff:
<a href="http://www.stackoverflow.com">Stack Overflow</a>.
<blink>Is blink still supported?</blink>
</div>
<p>Yet more markdown text.</p>
他のヒント
少なくともここでスタックオーバーフロー上、... <pre>
のHTMLタグがその目的のためだけで正常に動作します。また、フォーマットのブラウザのようなあなたのテキストになります。
This is pre-formatted, so in here I can /slash/ and *star* stuff without issues, and [[square brackets]] [are] just brackets.
所属していません StackOverflow