Skip to content

Commit 0d4517a

Browse files
authored
Adding markdown support, closes #29 (#34)
1 parent 3ae5408 commit 0d4517a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_layouts/bin.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ <h2 id="{{function_name}}" class="function-name">
7474
<ol>
7575
{% for item in Command.items -%}
7676
<li>
77-
<p>{{item.Description | escape}}</p>
77+
{{item.Description | markdownify}}
7878
<pre><code>{{item.Command | escape_once}}</code></pre>
7979
<div class="properties">
80-
<dl class="row"><dt class="property">Use case</dt><dd>{{item.Usecase | escape}}</dd></dl>
80+
<dl class="row"><dt class="property">Use case</dt><dd>{{item.Usecase | markdownify}}</dd></dl>
8181
<dl class="row"><dt class="property">Privileges required</dt><dd>{{item.Privileges}}</dd></dl>
8282
<dl class="row"><dt class="property">Operating systems</dt><dd>{{item.OperatingSystem}}</dd></dl>
8383
<dl class="row"><dt class="property">ATT&CK&reg; technique</dt><dd><span data-attack-tid="{{item.MitreID}}">{{item.MitreID}}</span></dd></dl>

assets/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ ol li:only-child {
340340
dl.row>dd {
341341
margin: 0;
342342
}
343+
dd>p {
344+
345+
margin: 0;
346+
}
343347

344348
dl { /* Required for Chrome, default in Firefox */
345349
margin: 0;

0 commit comments

Comments
 (0)