1 line
No EOL
8.2 KiB
HTML
1 line
No EOL
8.2 KiB
HTML
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>NML | Blockquotes</title><link rel="stylesheet" href="../style.css"></head><body><div class="layout"><input id="navbar-checkbox" class="toggle" type="checkbox" style="display:none" checked><div id="navbar"><ul><li class="navbar-entry"><a href="Getting Started.html">Getting Started</a></li><li class="navbar-entry"><a href="Sections.html">Sections</a></li><li class="navbar-entry"><a href="Variables.html">Variables</a></li><li class="navbar-entry"><a href="References.html">References</a></li><li class="navbar-entry"><a href="Imports.html">Imports</a></li><li class="navbar-entry"><a href="Raw.html">Raw</a></li><li class="navbar-entry"><a href="Comments.html">Comments</a></li><li><details><summary class="navbar-category">External Tools</summary><ul><li class="navbar-entry"><a href="Graphviz.html">Graphviz</a></li><li class="navbar-entry"><a href="LaTeX.html">LaTeX</a></li></ul></details></li><li><details open><summary class="navbar-category">Blocks</summary><ul><li class="navbar-entry-current"><a href="Blockquotes.html">Blockquotes</a></li><li class="navbar-entry"><a href="Code.html">Code</a></li><li class="navbar-entry"><a href="Lists.html">Lists</a></li></ul></details></li><li><details><summary class="navbar-category">Lua</summary><ul><li class="navbar-entry"><a href="Lua Basics.html">Lua</a></li></ul></details></li><li><details><summary class="navbar-category">Styles</summary><ul><li class="navbar-entry"><a href="Basic Styles.html">Basic</a></li><li class="navbar-entry"><a href="Basic Layouts.html">Layouts</a></li><li class="navbar-entry"><a href="User-Defined Styles.html">User-Defined</a></li></ul></details></li></ul></div><label for="navbar-checkbox" class="navbar-checkbox-label">☰</label><div class="content"><div class="toc"><span>Table of Content</span><ol><li value="1"><a href="#Blockquotes">Blockquotes</a></li><li value="2"><a href="#Nesting_blockquotes">Nesting blockquotes</a></li><li value="3"><a href="#Properties">Properties</a></li><li value="4"><a href="#Blockquotes_styling">Blockquotes styling</a></li></div><h1 id="Blockquotes">1. Blockquotes <a class="section-link" href="#Blockquotes">🔗 </a> </h1><div class="blockquote-content"><blockquote cite="https://github.com/systemd/systemd/pull/5998"><div class="blockquote-content"><blockquote><p>IMO, you shouldn't see the assignment of a CVE as a negative thing. The bug exists whether or not a CVE is assigned. The assignment of a CVE allows for people to consider what this issue means for them.</p></blockquote></div><p>Well, that makes no sense. You don't assign CVEs to every single random bugfix we do, do you? So why this one? I understand your currency is CVEs, but this just makes CVEs useless. And hardly anymore useful than a git history... I mean, I am fine with security bureaucracy if it actually helps anyone, but you just create noise where there shouldn't be any. And that way you just piss off the upstreams whose cooperation you actually should be interested in. Your at least made sure that my own interest in helping your efforts goes to zero...</p></blockquote><p class="blockquote-author">Lennart Poettering, SystemD github issue 5998</p></div><h1 id="Nesting_blockquotes">2. Nesting blockquotes <a class="section-link" href="#Nesting_blockquotes">🔗 </a> </h1><div class="blockquote-content"><blockquote><p>Quotes can be nested</p><div class="blockquote-content"><blockquote><p>Here's a subquote</p><div class="blockquote-content"><blockquote><p>Here's another subquote</p></blockquote><p class="blockquote-author">With author, With cite</p></div><p>Back to the subquote</p></blockquote></div><div class="blockquote-content"><blockquote><p>Another subquote</p></blockquote></div><p>This issue is getting a bit too heated, locking right now</p></blockquote></div><div class="code-block"><div class="code-block-title">Given by the following</div><div class="code-block-content"><table cellspacing="0"><tr><td class="code-block-gutter"><pre><span>1</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">> Quotes can be nested</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>2</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">>> Here's a subquote</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>3</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">>>>[author=With author, cite=With cite]</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>4</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">>>> Here's another subquote</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>5</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">>> Back to the subquote</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>6</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">></span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>7</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">>> Another subquote</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>8</span></pre></td><td class="code-block-line"><pre><span style="color:#d08770;">> This issue is getting a bit too heated, locking right now</span></pre></td></tr></table></div></div><h1 id="Properties">3. Properties <a class="section-link" href="#Properties">🔗 </a> </h1><p>Properties must be specified on the first <em>></em> of the quote, inside brackets.</p><ul><li><a class="inline-code"><code><span style="color:#c0c5ce;">author</span></code></a> The quote author</li><li><a class="inline-code"><code><span style="color:#c0c5ce;">cite</span></code></a> The quote source name</li><li><a class="inline-code"><code><span style="color:#c0c5ce;">url</span></code></a> The quote source url (used for accessibility)</li></ul><h1 id="Blockquotes_styling">4. Blockquotes styling <a class="section-link" href="#Blockquotes_styling">🔗 </a> </h1><p>The blockquotes styling controls how the author, cite and url are rendered. This is controlled by style key <a class="inline-code"><code><span style="color:#c0c5ce;">style.blockquote</span></code></a>.</p><ul><li><a class="inline-code"><code><span style="color:#c0c5ce;">author_pos</span></code></a> Position of the author statement, available options:</li><ol><li value="1"><em>None</em> Hides the author</li><li value="2"><em>Before</em> Displays the author before the quote</li><li value="3"><em>After</em> Displays the author after the quote (default)</li></ol><li><a class="inline-code"><code><span style="color:#c0c5ce;">format</span></code></a> An array with 3 format strings to control how the author is displayed:</li><ol><li value="0">Format for author+cite</li><li value="1">Format for author onl</li><li value="2">Format for cite only</li></ol></ul><div class="code-block"><div class="code-block-title">Default Style</div><div class="code-block-content"><table cellspacing="0"><tr><td class="code-block-gutter"><pre><span>1</span></pre></td><td class="code-block-line"><pre><span style="color:#c0c5ce;">{</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>2</span></pre></td><td class="code-block-line"><pre><span style="color:#c0c5ce;"> "</span><span style="color:#a3be8c;">author_pos</span><span style="color:#c0c5ce;">": "</span><span style="color:#a3be8c;">After</span><span style="color:#c0c5ce;">",</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>3</span></pre></td><td class="code-block-line"><pre><span style="color:#c0c5ce;"> "</span><span style="color:#a3be8c;">format</span><span style="color:#c0c5ce;">": ["</span><span style="color:#a3be8c;">{author}, {cite}</span><span style="color:#c0c5ce;">", "</span><span style="color:#a3be8c;">{author}</span><span style="color:#c0c5ce;">", "</span><span style="color:#a3be8c;">{cite}</span><span style="color:#c0c5ce;">"],</span></pre></td></tr><tr><td class="code-block-gutter"><pre><span>4</span></pre></td><td class="code-block-line"><pre><span style="color:#c0c5ce;">}</span></pre></td></tr></table></div></div><p></p></div></div></body></html> |