Skip to content

Commit 5b9692f

Browse files
committed
feat: add descrirption shortcodes to handle description environments used in texmacs
1 parent 28d1a76 commit 5b9692f

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

assets/_custom.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,14 @@ figure.image-with-source {
447447
}
448448
}
449449

450+
// Description list (LaTeX-style)
451+
.description-list {
452+
.description-item {
453+
padding-left: 1.5em;
454+
text-indent: -1.5em;
455+
margin: 0.25em 0;
456+
}
457+
}
450458

451459
.brand-row {
452460
display: flex;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{- $title := .Get "title" -}}
2+
<p class="description-item"><strong>{{ $title }}.</strong> {{ .Inner | markdownify }}</p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="description-list">
2+
{{ .Inner }}
3+
</div>

0 commit comments

Comments
 (0)