all repos — hastystyles @ 6630afd44f72553051d6cee5045a83b99925abb0

The stylesheets for HastyScrybe and HastySite.

dist/HastyStyles_TestDocument.htm

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
 1000
 1001
 1002
 1003
 1004
 1005
 1006
 1007
 1008
 1009
 1010
 1011
 1012
 1013
 1014
 1015
 1016
 1017
 1018
 1019
 1020
 1021
 1022
 1023
 1024
 1025
 1026
 1027
 1028
 1029
 1030
 1031
 1032
 1033
 1034
 1035
 1036
 1037
 1038
 1039
 1040
 1041
 1042
 1043
 1044
 1045
 1046
 1047
 1048
 1049
 1050
 1051
 1052
 1053
 1054
 1055
 1056
 1057
 1058
 1059
 1060
 1061
 1062
 1063
 1064
 1065
 1066
 1067
 1068
 1069
 1070
 1071
 1072
 1073
 1074
 1075
 1076
 1077
 1078
 1079
 1080
 1081
 1082
 1083
 1084
 1085
 1086
 1087
 1088
 1089
 1090
 1091
 1092
 1093
 1094
 1095
 1096
 1097
 1098
 1099
 1100
 1101
 1102
 1103
 1104
 1105
 1106
 1107
 1108
 1109
 1110
 1111
 1112
 1113
 1114
 1115
 1116
 1117
 1118
 1119
 1120
 1121
 1122
 1123
 1124
 1125
 1126
 1127
 1128
 1129
 1130
 1131
 1132
 1133
 1134
 1135
 1136
 1137
 1138
 1139
 1140
 1141
 1142
 1143
 1144
 1145
 1146
 1147
 1148
 1149
 1150
 1151
 1152
 1153
 1154
 1155
 1156
 1157
 1158
 1159
 1160
 1161
 1162
 1163
 1164
 1165
 1166
 1167
 1168
 1169
 1170
 1171
 1172
 1173
 1174
 1175
 1176
 1177
 1178
 1179
 1180
 1181
 1182
 1183
 1184
 1185
 1186
 1187
 1188
 1189
 1190
 1191
 1192
 1193
 1194
 1195
 1196
 1197
 1198
 1199
 1200
 1201
 1202
 1203
 1204
 1205
 1206
 1207
 1208
 1209
 1210
 1211
 1212
 1213
 1214
 1215
 1216
 1217
 1218
 1219
 1220
 1221
 1222
 1223
 1224
 1225
 1226
 1227
 1228
 1229
 1230
 1231
 1232
 1233
 1234
 1235
 1236
 1237
 1238
 1239
<!doctype html>
<html lang="en">
<head>
  <title>HastyStyles Test Document</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="author" content="Fabio Cevasco">
  <meta name="generator" content="HastyScribe">
  
  
  
  <style>
@import url('hastystyles.css');
@import url('hastystyles.badges.css');
@import url('hastystyles.notes.css');
@import url('hastystyles.icons.css');
@import url('hastystyles.links.css');
</style>

  
</head>
<body class="headings">
  <div id="container">
    <a id="document-top"></a>
    <div id="header"><h1>HastyStyles Test Document</h1></div>
    <div id="toc"><ul>
 <li>
 <ul>
  <li><a href="#Syntax-Reference">Syntax Reference</a>
  <ul>
   <li><a href="#Document-Headers">Document Headers</a></li>
   <li><a href="#Transclusion">Transclusion</a></li>
   <li><a href="#Snippets">Snippets</a></li>
   <li><a href="#Fields">Fields</a></li>
   <li><a href="#Macros">Macros</a></li>
   <li><a href="#Inline-Formatting">Inline Formatting</a>
   <ul>
    <li><a href="#SmartyPants-Substitutions">SmartyPants Substitutions</a></li>
    <li><a href="#Icons">Icons</a></li>
    <li><a href="#Badges">Badges</a></li>
    <li><a href="#Anchors">Anchors</a></li>
    <li><a href="#Links">Links</a></li>
   </ul>
   </li>
   <li><a href="#Block-level-Formatting">Block-level Formatting</a>
   <ul>
    <li><a href="#Headings">Headings</a></li>
    <li><a href="#Tables">Tables</a></li>
    <li><a href="#Block-Quotes">Block Quotes</a></li>
    <li><a href="#Code-Blocks">Code Blocks</a></li>
    <li><a href="#Images">Images</a></li>
    <li><a href="#Details">Details</a></li>
    <li><a href="#Footnotes">Footnotes</a></li>
    <li><a href="#Lists">Lists</a>
    <ul>
     <li><a href="#Unordered-Lists">Unordered Lists</a></li>
     <li><a href="#Ordered-Lists">Ordered Lists</a></li>
     <li><a href="#Alphabetical-Lists">Alphabetical Lists</a></li>
     <li><a href="#Checklists">Checklists</a></li>
     <li><a href="#Unstyled-Lists">Unstyled Lists</a></li>
     <li><a href="#Nested-Lists">Nested Lists</a></li>
     <li><a href="#Definition-Lists">Definition Lists</a></li>
    </ul>
    </li>
    <li><a href="#Class-Blocks">Class Blocks</a>
    <ul>
     <li><a href="#Notes">Notes</a></li>
     <li><a href="#Tips">Tips</a></li>
     <li><a href="#Warnings">Warnings</a></li>
     <li><a href="#Sidebars">Sidebars</a></li>
     <li><a href="#Blank-Sidebars">Blank Sidebars</a></li>
     <li><a href="#Terminal-Sessions">Terminal Sessions</a></li>
    </ul>
    </li>
   </ul>
   </li>
  </ul>
  </li>
 </ul>
 </li>
</ul>
</div>
    <div id="main">




<a id="Syntax-Reference"></a>
<h2>Syntax Reference<a href="#document-top" title="Go to top"></a></h2>

<a id="Document-Headers"></a>
<h3>Document Headers<a href="#document-top" title="Go to top"></a></h3>

<p>HastyScribe  supports <a href="http://johnmacfarlane.net/pandoc/">Pandoc</a>-style Document Headers, as implemented by the <a href="http://www.pell.portland.or.us/~orc/Code/discount/">Discount</a> library. Basically, you can specify the title of the document, author and date as the first three lines of the document, prepending each with a <span class="kwd">%</span>, like this</p>

<pre><code>% HastyScribe User Guide
% Fabio Cevasco
% -
</code></pre>

<div class="warning"><p>Important</p>

<ul>
<li>The order of the document headers is significant.</li>
<li>If you want to use the current date, enter <span class="kwd">% -</span> in the third line.</li>
</ul>
</div>

<a id="Transclusion"></a>
<h3>Transclusion<a href="#document-top" title="Go to top"></a></h3>

<p>When writing a long document, it is often useful to split it into many different files, to manage its contents better. HastyScribe  provides basic content transclusion support through the following syntax:</p>

<p><code>{@ my-file.md || 1 @}</code></p>

<p>When a file is processed, the line above will cause the contents of file <span class="file">my-file.md</span> to be included in the current file, as if they were part of it. Additionally, when using content transclusion syntax, it is mandatory to specify a number between 0 and 5 to indicate the <em>offset</em> of the headings present in the transcluded file. In this example, the heading numbers of all headings present in <span class="file">my-file.md</span> will be increased by 1, so any <span class="kwd">h2</span> will become <span class="kwd">h3</span>, any <span class="kwd">h3</span> will become <span class="kwd">h4</span>, and so on.</p>

<div class="warning"><p>Limitations</p>

<ul>
<li>It is recommended to place all transcluded files in the same folder as the transcluding file. If a transcluded file includes any image, its relative path will be interpreted as if it was relative to the transcluding file.</li>
<li>Heading offset will only work if headings are created using <span class="kwd">#</span>s. Underline syntax for <span class="kwd">h1</span> and <span class="kwd">h2</span> is not supported.</li>
</ul>
</div>

<a id="Snippets"></a>
<h3>Snippets<a href="#document-top" title="Go to top"></a></h3>

<p>If you want to reuse a few words or even entire blocks of texts, you can use HastyScribe &rsquo;s snippets.</p>

<p>A snippet definition is constituted by an identifier, followed by an arrow (<span class="kwd">-></span>), followed by some text &ndash; all wrapped in double curly brackets.</p>

<p>The following definition creates a snippet called <span class="kwd">test</span> which is transformed into the text &ldquo;This is a test snippet.&rdquo;.</p>

<p><code>{{test -> This is a test snippet.}}</code></p>

<p>Once a snippet is defined <em>anywhere</em> in the document, you can use its identifier wrapped in double curly brackets (<code>{{test}}}</code> in the previous example) anywhere in the document to reuse the specified text.</p>

<div class="sidebar"><p>Alternative Snippet Definition Syntax</p>

<p>When a document is compiled, both snippets <em>and snippet defininotions</em> are evaluated to their body text. To avoid snippet definitions being evaluated, you can use a double arrow (<span class="kwd">=></span>) in the definition:</p>

<p><code>{{test => This snippet definition will not be evaluated to its body text.}}</code></p></div>

<a id="Fields"></a>
<h3>Fields<a href="#document-top" title="Go to top"></a></h3>

<p>Besides user-defined snippets, HastyScribe  also support fields, which can be used to insert current time and date information in a variety of formats:</p>

<div class="responsive"><table>
<thead>
<tr>
<th>Source                                      </th>
<th> Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>{{$timestamp}}</code>             </td>
<td> 1693490621</td>
</tr>
<tr>
<td><code>{{$date}}</code>                  </td>
<td> 2023-08-31</td>
</tr>
<tr>
<td><code>{{$full-date}}</code>             </td>
<td> Thursday, August 31, 2023</td>
</tr>
<tr>
<td><code>{{$long-date}}</code>             </td>
<td> August 31, 2023</td>
</tr>
<tr>
<td><code>{{$medium-date}}</code>           </td>
<td> Aug 31, 2023</td>
</tr>
<tr>
<td><code>{{$short-date}}</code>            </td>
<td> 8/31/23</td>
</tr>
<tr>
<td><code>{{$short-time}}</code>            </td>
<td> 16:03 PM</td>
</tr>
<tr>
<td><code>{{$short-time-24}}</code>         </td>
<td> 16:03</td>
</tr>
<tr>
<td><code>{{$time}}</code>                  </td>
<td> 16:03:41 PM</td>
</tr>
<tr>
<td><code>{{$time-24}}</code>               </td>
<td> 16:03:41</td>
</tr>
<tr>
<td><code>{{$day}}</code>                   </td>
<td> 31</td>
</tr>
<tr>
<td><code>{{$short-day}}</code>             </td>
<td> 31</td>
</tr>
<tr>
<td><code>{{$month}}</code>                 </td>
<td> 08</td>
</tr>
<tr>
<td><code>{{$short-month}}</code>           </td>
<td> 8</td>
</tr>
<tr>
<td><code>{{$year}}</code>                  </td>
<td> 2023</td>
</tr>
<tr>
<td><code>{{$short-year}}</code>            </td>
<td> 23</td>
</tr>
<tr>
<td><code>{{$weekday}}</code>               </td>
<td> Thursday</td>
</tr>
<tr>
<td><code>{{$weekday-abbr}}</code>          </td>
<td> 31</td>
</tr>
<tr>
<td><code>{{$month-name}}</code>            </td>
<td> August</td>
</tr>
<tr>
<td><code>{{$month-name-abbr}}</code>       </td>
<td> Aug</td>
</tr>
<tr>
<td><code>{{$timezone-offset}}</code>       </td>
<td> +02:00</td>
</tr>
</tbody>
</table>
</div>

<p>Additionally, you can define your own custom fields via command-line parameters, using the <span class="arg">--field/</span> dynamic parameter, like this:</p>

<div class="terminal"><p>hastyscribe my-document.md --field/product:HastyScribe --field/version:1.2.0</p></div>

<p>In this case it will be possible to access the <span class="kwd">product</span> and <span class="kwd">product</span> fields within <span class="file">my-document.md</span> using <code>{{$product}}</code> and <code>{{$version}}</code>.</p>

<a id="Macros"></a>
<h3>Macros<a href="#document-top" title="Go to top"></a></h3>

<p>If snippets are not enough, and you want to reuse chunks of <em>similar</em> content, you can define substitution macros using the following syntax:</p>

<p><code>{#greet => Hello, $1! Are you $2?#}</code></p>

<p>This defines a macro called <span class="kwd">greet</span> that takes two parameters which will be substituted instead of <span class="kwd">$1</span> and <span class="kwd">$2</span>. To use the macro, use the following syntax:</p>

<p><code>{#greet||Fabio||ready#}</code></p>

<div class="note"><p>Note</p>

<ul>
<li>Like snippets, macros can be multiline.</li>
<li>Spaces and newline character are preseved ad the start and end of parameters.</li>
<li>You can use snippets and fields within macros (but you cannot nest macros inside other macros).</li>
<li>You can define macros using either <span class="kwd">-></span> or <span class="kwd">=></span>, although <span class="kwd">=></span> is preferred.</li>
</ul>
</div>

<a id="Inline-Formatting"></a>
<h3>Inline Formatting<a href="#document-top" title="Go to top"></a></h3>

<p>The following table lists all the most common ways to format inline text:</p>

<div class="responsive"><table>
<thead>
<tr>
<th>Source                                             </th>
<th> Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>**strong emphasis**</code> or <code>__strong emphasis__</code>      </td>
<td> <strong>strong emphasis</strong></td>
</tr>
<tr>
<td><code>*emphasis*</code> or <code>_emphasis_</code>                        </td>
<td> <em>emphasis</em></td>
</tr>
<tr>
<td><code>~~deleted text~~</code>                                  </td>
<td> <del>deleted text</del></td>
</tr>
<tr>
<td><code>&lt;ins&gt;inserted text&lt;ins&gt;</code>                           </td>
<td> <ins>inserted text</ins></td>
</tr>
<tr>
<td><code>`code`</code>                                         </td>
<td> <code>code</code></td>
</tr>
<tr>
<td><code>[HTML](abbr:Hypertext Markup Language)</code>            </td>
<td> <abbr title="Hypertext Markup Language">HTML</abbr></td>
</tr>
<tr>
<td><code>&lt;kbd&gt;CTRL&lt;/kbd&gt;+&lt;kbd&gt;C&lt;/kbd&gt;</code>                      </td>
<td> <kbd>CTRL</kbd>+<kbd>C</kbd></td>
</tr>
<tr>
<td><code>&lt;mark&gt;marked&lt;/mark&gt;</code>                               </td>
<td> <mark>marked</mark>.</td>
</tr>
<tr>
<td><code>Sample output: &lt;samp&gt;This is a test.&lt;/samp&gt;</code>       </td>
<td> Sample output: <samp>This is a test.</samp></td>
</tr>
<tr>
<td><code>Set the variable &lt;var&gt;test&lt;/var&gt; to 1.</code>            </td>
<td> Set the variable <var>test</var> to 1.</td>
</tr>
<tr>
<td><code>&lt;q&gt;This is a short quotation&lt;/q&gt;</code>                  </td>
<td> <q>This is a short quotation</q></td>
</tr>
<tr>
<td><code>&lt;cite&gt;Hamlet&lt;/cite&gt;, by William Shakespeare.</code>      </td>
<td> <cite>Hamlet</cite>, by William Shakespeare.</td>
</tr>
<tr>
<td><code>A [.md](class:ext) file</code>                           </td>
<td> A <span class="ext">.md</span> file</td>
</tr>
<tr>
<td><code>[my_markdown_file.md](class:file) file</code>            </td>
<td> <span class="file">my_markdown_file.md</span> file</td>
</tr>
</tbody>
</table>
</div>

<div class="tip"><p>Tip</p>

<p>The <span class="kwd">kwd</span>, <span class="kwd">opt</span>, <span class="kwd">file</span>, <span class="kwd">dir</span>, <span class="kwd">arg</span>, <span class="kwd">tt</span> and <span class="kwd">cmd</span> classes are all rendered as inline monospace text. <span class="kwd">kwd</span> and <span class="ext">ext</span> are also rendered in bold.</p></div>

<a id="SmartyPants-Substitutions"></a>
<h4>SmartyPants Substitutions<a href="#document-top" title="Go to top"></a></h4>

<p>Special characters can be easily entered using some special character sequences.</p>

<p>HastyScribe  supports all the sequences supported by <a href="http://www.pell.portland.or.us/~orc/Code/discount/">Discount</a>:</p>

<ul>
<li><code>`` text‘’</code> &rarr; “text”.</li>
<li><code>"double-quoted text"</code> &rarr; “double-quoted text”</li>
<li><code>'single-quoted text'</code> &rarr; ‘single-quoted text’</li>
<li><code>don't</code> &rarr; don’t. as well as anything-else’t. (But foo'tbar is just foo'tbar.)</li>
<li><code>it's</code> &rarr; it’s, as well as anything-else’s (except not foo'sbar and the like.)</li>
<li><code>(tm)</code> &rarr; ™</li>
<li><code>(r)</code> &rarr; ®</li>
<li><code>(c)</code> &rarr; ©</li>
<li><code>1/4th</code> &rarr; &frac14;th. Same goes for &frac12; and &frac34;.</li>
<li><code>...</code> or <code>. . .</code> &rarr; …</li>
<li><code>---</code> &rarr; —</li>
<li><code>--</code> &rarr; –</li>
<li><code>A^B</code> becomes A<sup>B</sup>. Complex superscripts can be enclosed in brackets, so <code>A^(B+2)</code> &rarr; A<sup>B+2</sup>.</li>
</ul>


<a id="Icons"></a>
<h4>Icons<a href="#document-top" title="Go to top"></a></h4>

<p>HastyScribe  bundles the <a href="http://fortawesome.github.io/Font-Awesome/">FontAwesome</a> icon font. To prepend an icon to text you can use Discount&rsquo;s <em>class:</em> pseudo-protocol, and specify a valid <span class="kwd">fa-*</span> (non-alias) class.</p>

<p>Examples:</p>

<div class="responsive"><table>
<thead>
<tr>
<th>Source                                   </th>
<th> Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>[a paper plane](class:fa-paper-plane)</code> </td>
<td> <span class="fa-paper-plane"> a paper plane</span></td>
</tr>
<tr>
<td><code>[Galactic Empire](class:fa-empire)</code>    </td>
<td> <span class="fa-empire"> Galactic Empire</span></td>
</tr>
<tr>
<td><code>[Rebel Alliance](class:fa-rebel)</code>      </td>
<td> <span class="fa-rebel"> Rebel Alliance</span></td>
</tr>
</tbody>
</table>
</div>

<div class="tip"><p>Tip</p>

<p>See the <a href="http://fortawesome.github.io/Font-Awesome/icons/">FontAwesome Icon Reference</a> for a complete list of all CSS classes to use for icons (aliases are not supported).</p></div>

<a id="Badges"></a>
<h4>Badges<a href="#document-top" title="Go to top"></a></h4>

<p>Badges are shorthands for <a href="#Icons">Icons</a> formatted with different colors. To add a <em>badge</em> to some inline text, use the corresponding class among those listed in the following table. For example, the following code:</p>

<pre><code>[Genoa, Italy](class:badge-geo)
</code></pre>

<p>produces the following result:</p>

<p><span class="badge-geo">Genoa, Italy</span></p>

<p>HastyScribe  currently supports the following badges:</p>

<div class="responsive"><table>
<thead>
<tr>
<th>Class                      </th>
<th> Badge                              </th>
<th> Class                     </th>
<th> Badge</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>badge-todo</code>               </td>
<td> <span class="badge-todo"></span>               </td>
<td><code>badge-user</code>               </td>
<td> <span class="badge-user"></span></td>
</tr>
<tr>
<td><code>badge-fixme</code>              </td>
<td> <span class="badge-fixme"></span>              </td>
<td><code>badge-tag</code>                </td>
<td> <span class="badge-tag"></span></td>
</tr>
<tr>
<td><code>badge-deadline</code>           </td>
<td> <span class="badge-deadline"></span>           </td>
<td><code>badge-tags</code>               </td>
<td> <span class="badge-tags"></span></td>
</tr>
<tr>
<td><code>badge-comment</code>            </td>
<td> <span class="badge-comment"></span>            </td>
<td><code>badge-attachment</code>         </td>
<td> <span class="badge-attachment"></span></td>
</tr>
<tr>
<td><code>badge-urgent</code>             </td>
<td> <span class="badge-urgent"></span>             </td>
<td><code>badge-bug</code>                </td>
<td> <span class="badge-bug"></span></td>
</tr>
<tr>
<td><code>badge-verify</code>             </td>
<td> <span class="badge-verify"></span>             </td>
<td><code>badge-geo</code>                </td>
<td> <span class="badge-geo"></span></td>
</tr>
<tr>
<td><code>badge-project</code>            </td>
<td> <span class="badge-project"></span>            </td>
<td><code>badge-square</code>             </td>
<td> <span class="badge-square"></span></td>
</tr>
<tr>
<td><code>badge-star</code>               </td>
<td> <span class="badge-star"></span>               </td>
<td><code>badge-check</code>              </td>
<td> <span class="badge-check"></span></td>
</tr>
<tr>
<td><code>badge-heart</code>              </td>
<td> <span class="badge-heart"></span>              </td>
<td><code>badge-rss</code>                </td>
<td> <span class="badge-rss"></span></td>
</tr>
<tr>
<td><code>badge-lock</code>               </td>
<td> <span class="badge-lock"></span>               </td>
<td><code>badge-danger</code>             </td>
<td> <span class="badge-danger"></span></td>
</tr>
<tr>
<td><code>badge-unlock</code>             </td>
<td> <span class="badge-unlock"></span>             </td>
<td><code>badge-question</code>           </td>
<td> <span class="badge-question"></span></td>
</tr>
<tr>
<td><code>badge-folder</code>             </td>
<td> <span class="badge-folder"></span>             </td>
<td><code>badge-flag</code>               </td>
<td> <span class="badge-flag"></span></td>
</tr>
<tr>
<td><code>badge-story</code>              </td>
<td> <span class="badge-story"></span>              </td>
<td><code>badge-feature</code>            </td>
<td> <span class="badge-feature"></span></td>
</tr>
<tr>
<td><code>badge-add</code>                </td>
<td> <span class="badge-add"></span>                </td>
<td><code>badge-remove</code>             </td>
<td> <span class="badge-remove"></span></td>
</tr>
<tr>
<td><code>badge-time</code>               </td>
<td> <span class="badge-time"></span>               </td>
<td><code>badge-date</code>               </td>
<td> <span class="badge-date"></span></td>
</tr>
<tr>
<td><code>badge-html5</code>              </td>
<td> <span class="badge-html5"></span>              </td>
<td><code>badge-css3</code>               </td>
<td> <span class="badge-css3"></span></td>
</tr>
<tr>
<td><code>badge-apple</code>              </td>
<td> <span class="badge-apple"></span>              </td>
<td><code>badge-windows</code>            </td>
<td> <span class="badge-windows"></span></td>
</tr>
<tr>
<td><code>badge-linux</code>              </td>
<td> <span class="badge-linux"></span>              </td>
<td><code>badge-android</code>            </td>
<td> <span class="badge-android"></span></td>
</tr>
<tr>
<td><code>badge-freebsd</code>            </td>
<td> <span class="badge-freebsd"></span>            </td>
<td><code>badge-aws</code>                </td>
<td> <span class="badge-aws"></span></td>
</tr>
<tr>
<td><code>badge-idea</code>               </td>
<td> <span class="badge-idea"></span>               </td>
<td><code>badge-link</code>               </td>
<td> <span class="badge-link"></span></td>
</tr>
<tr>
<td><code>badge-chrome</code>             </td>
<td> <span class="badge-chrome"></span>             </td>
<td><code>badge-firefox</code>            </td>
<td> <span class="badge-firefox"></span></td>
</tr>
<tr>
<td><code>badge-ie</code>                 </td>
<td> <span class="badge-ie"></span>                 </td>
<td><code>badge-edge</code>               </td>
<td> <span class="badge-edge"></span></td>
</tr>
<tr>
<td><code>badge-safari</code>             </td>
<td> <span class="badge-safari"></span>             </td>
<td><code>badge-opera</code>              </td>
<td> <span class="badge-opera"></span></td>
</tr>
<tr>
<td><code>badge-php</code>                </td>
<td> <span class="badge-php"></span>                </td>
<td><code>badge-erlang</code>             </td>
<td> <span class="badge-erlang"></span></td>
</tr>
<tr>
<td><code>badge-python</code>             </td>
<td> <span class="badge-python"></span>             </td>
<td><code>badge-java</code>               </td>
<td> <span class="badge-java"></span></td>
</tr>
<tr>
<td><code>badge-nodejs</code>             </td>
<td> <span class="badge-nodejs"></span>             </td>
<td><code>badge-js</code>                 </td>
<td> <span class="badge-js"></span></td>
</tr>
<tr>
<td><code>badge-toggle-on</code>          </td>
<td> <span class="badge-toggle-on"></span>          </td>
<td><code>badge-toggle-off</code>         </td>
<td> <span class="badge-toggle-off"></span></td>
</tr>
<tr>
<td><code>badge-debian</code>             </td>
<td> <span class="badge-debian"></span>             </td>
<td><code>badge-fedora</code>             </td>
<td> <span class="badge-fedora"></span></td>
</tr>
<tr>
<td><code>badge-centos</code>             </td>
<td> <span class="badge-centos"></span>             </td>
<td><code>badge-suse</code>               </td>
<td> <span class="badge-suse"></span></td>
</tr>
<tr>
<td><code>badge-redhat</code>             </td>
<td> <span class="badge-redhat"></span>             </td>
<td><code>badge-ubuntu</code>             </td>
<td> <span class="badge-ubuntu"></span></td>
</tr>
<tr>
<td><code>badge-rust</code>               </td>
<td> <span class="badge-rust"></span>               </td>
<td><code>badge-go</code>                 </td>
<td> <span class="badge-go"></span></td>
</tr>
<tr>
<td><code>badge-rpi</code>                </td>
<td> <span class="badge-rpi"></span>                </td>
<td><code>badge-markdown</code>           </td>
<td> <span class="badge-markdown"></span></td>
</tr>
<tr>
<td><code>badge-react</code>              </td>
<td> <span class="badge-react"></span>              </td>
<td><code>badge-angular</code>            </td>
<td> <span class="badge-angular"></span></td>
</tr>
<tr>
<td><code>badge-vue</code>                </td>
<td> <span class="badge-vue"></span>                </td>
<td><code>badge-code</code>               </td>
<td> <span class="badge-code"></span></td>
</tr>
<tr>
<td><code>badge-address</code>            </td>
<td> <span class="badge-address"></span>            </td>
<td><code>badge-org</code>                </td>
<td> <span class="badge-org"></span></td>
</tr>
<tr>
<td><code>badge-toxic</code>              </td>
<td> <span class="badge-toxic"></span>              </td>
<td><code>badge-network</code>            </td>
<td> <span class="badge-network"></span></td>
</tr>
<tr>
<td><code>badge-upload</code>             </td>
<td> <span class="badge-upload"></span>             </td>
<td><code>badge-download</code>           </td>
<td> <span class="badge-download"></span></td>
</tr>
</tbody>
</table>
</div>

<a id="Anchors"></a>
<h4>Anchors<a href="#document-top" title="Go to top"></a></h4>

<p>You can define HTML anchors inline by wrapping their ID in hashes. For example, the following code:</p>

<pre><code> Some text goes here. #some_text#
</code></pre>

<p>Is converted to:</p>

<pre><code> Some text goes here. &lt;a id="some_text"&gt;&lt;/a&gt;
</code></pre>

<div class="note"><p>Note</p>

<ul>
<li>Anchor markup must be preceded by at least one space.</li>
<li>IDs must start with a letter, and can contain letters, numbers, and any of the following characters: <code>_</code> <code>-</code> <code>.</code> <code>:</code></li>
</ul>
</div>

<a id="Links"></a>
<h4>Links<a href="#document-top" title="Go to top"></a></h4>

<div class="responsive"><table>
<thead>
<tr>
<th>Source                                  </th>
<th> Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>[H3RALD](https://h3rald.com/)</code>         </td>
<td> <a href="https://h3rald.com/">H3RALD</a></td>
</tr>
<tr>
<td><code>[H3RALD](https://h3rald.com/ "H3RALD")</code></td>
<td> <a href="https://h3rald.com/" title="H3RALD">H3RALD</a></td>
</tr>
<tr>
<td><code>&lt;https://h3rald.com&gt;</code>                  </td>
<td> <a href="https://h3rald.com">https://h3rald.com</a></td>
</tr>
</tbody>
</table>
</div>

<p>Additionally, you can define placeholders for URLs and link titles, like this:</p>

<p><code>[h3rald]: https://h3rald.com/ "Fabio Cevasco's Web Site"</code></p>

<p>And use them in hyperlinks (note the usage of square brackets instead of round brackets):</p>

<p><code>[H3RALD][h3rald]</code></p>

<div class="sidebar"><p>Link Icons</p>

<p>HastyScribe  automatically adds an envelope icon to email links, an arrow icon to links to external web sites, and logo icons to links to well-known web sites:</p>

<ul>
<li><a href="mailto:h3rald@h3rald.com">h3rald@h3rad.com</a></li>
<li><a href="https://twitter.com/h3rald">@h3rald</a></li>
<li><a href="https://it.linkedin.com/in/fabiocevasco">fabiocevasco</a></li>
</ul>
</div>

<a id="Block-level-Formatting"></a>
<h3>Block-level Formatting<a href="#document-top" title="Go to top"></a></h3>

<a id="Headings"></a>
<h4>Headings<a href="#document-top" title="Go to top"></a></h4>

<p>Headings can be specified simply by prepending <span class="kwd">#</span>s to text, as follows:</p>

<pre><code># Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
</code></pre>

<div class="note"><p>Note</p>

<p>If you use <a href="#Document-Headers">Document Headers</a>, A <span class="kwd">H1</span> is used for the title of the HastyScribe  document. Within the document, start using headings from <span class="kwd">H2</span>.</p></div>

<a id="Tables"></a>
<h4>Tables<a href="#document-top" title="Go to top"></a></h4>

<p>HastyScribe  supports [PHP Markdown Extra][pme] table syntax using pipes and dashes.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>Column Header 1 | Column Header 2 | Column Header 3 
----------------|-----------------|----------------
Cell 1,1        | Cell 1,2        | Cell 1, 3
Cell 2,1        | Cell 2,2        | Cell 2, 3
Cell 3,1        | Cell 3,2        | Cell 3, 3
</code></pre>

<p>Produces the following output:</p>

<table>
<thead>
<tr>
<th>Column Header 1 </th>
<th> Column Header 2 </th>
<th> Column Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1,1        </td>
<td> Cell 1,2        </td>
<td> Cell 1, 3</td>
</tr>
<tr>
<td>Cell 2,1        </td>
<td> Cell 2,2        </td>
<td> Cell 2, 3</td>
</tr>
<tr>
<td>Cell 3,1        </td>
<td> Cell 3,2        </td>
<td> Cell 3, 3</td>
</tr>
</tbody>
</table>


<div class="note"><p>Note</p>

<p>Multi-row cells are not supported. If you need more complex tables, use HTML code instead.</p></div>

<div class="sidebar"><p>Responsive Tables</p>

<p>To make tables responsive, put them in a <em>responsive</em> block, like in the previous example. The <span class="kwd">responsive</span> class causes a table not to shrink and makes it scrollable horizontally on small devices.</p></div>

<a id="Block-Quotes"></a>
<h4>Block Quotes<a href="#document-top" title="Go to top"></a></h4>

<p>Block quotes can be created simply by prepending a <span class="kwd">></span> to a line, and they can be nested by prepending additional <span class="kwd">></span>s.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; This is a block quote.
&gt; &gt; This is a nested quote. 
</code></pre>

<p>Produces the following output:</p>

<blockquote><p>This is a block quote.</p>

<blockquote><p>This is a nested quote.</p></blockquote></blockquote>

<a id="Code-Blocks"></a>
<h4>Code Blocks<a href="#document-top" title="Go to top"></a></h4>

<p>To format a block of source code, indent it by at least four spaces. Here&rsquo;s the result:</p>

<pre><code>proc encode_image_file*(file, format): string =
  if (file.existsFile):
    let contents = file.readFile
    return encode_image(contents, format)
  else: 
    echo("Warning: image '"&amp; file &amp;"' not found.")
    return file
</code></pre>

<p>Alternatively, you can also use Github-style fenced blocks, by adding three tildes (~~~) or backticks (```) before and after the source code.</p>

<div class="warning"><p>Warning</p>

<p>HastyScribe  does not support syntax highlighting for code blocks. To do so, it would require Javascript and HastyScribe  is currently kept purposedly &ldquo;Javascript-free&rdquo;.</p></div>

<a id="Images"></a>
<h4>Images<a href="#document-top" title="Go to top"></a></h4>

<p>The following HastyScribe Markdown code:</p>

<pre><code>![HastyScribe Logo](./images/hastyscribe.png =221x65)
</code></pre>

<p>Produces the following output:</p>

<p><img src="./images/hastyscribe.png" height="65" width="221" alt="HastyScribe Logo" /></p>

<div class="tip"><p>Tip</p>

<p>You can use URL placeholders for images as well, exactly like for links.</p></div>

<div class="warning"><p>Limitations on automatic image download</p>

<p>HastyScribe  will attempt to download all HTTP image links. Note that:</p>

<ul>
<li>If no response is received within 5 seconds, the download will be aborted.</li>
<li>Connecting through a proxy is currently not supported.</li>
<li>To download an image via HTTPS, you must explicitly recompile HastyScribe  with <span class="kwd">-d:ssl</span> and OpenSSL must be installed on your system.</li>
</ul>


<p>If HastyScribe  is unable to download an image, it will leave it linked.</p></div>

<a id="Details"></a>
<h4>Details<a href="#document-top" title="Go to top"></a></h4>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&lt;details&gt;
&lt;summary&gt;Details&lt;/summary&gt;
The `details` element can be used to create a disclosure element whose contents are only visible when the element is toggled open.
&lt;/details&gt;
</code></pre>

<p>Produces the following output:</p>

<p><details>
<summary>Details</summary>
The <code>details</code> element can be used to create a disclosure element whose contents are only visible when the element is toggled open.
</details></p>

<a id="Footnotes"></a>
<h4>Footnotes<a href="#document-top" title="Go to top"></a></h4>

<p>The following HastyScribe Markdown code:</p>

<pre><code>This is some text[^1]

[^1]: This is a footnote!
</code></pre>

<p>Produces the following output:</p>

<p>This is some text<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<a id="Lists"></a>
<h4>Lists<a href="#document-top" title="Go to top"></a></h4>

<a id="Unordered-Lists"></a>
<h5>Unordered Lists<a href="#document-top" title="Go to top"></a></h5>

<p>The following HastyScribe Markdown code:</p>

<pre><code>* An item
* Another item
* And another...
</code></pre>

<p>Produces the following output:</p>

<ul>
<li>An item</li>
<li>Another item</li>
<li>And another&hellip;</li>
</ul>


<a id="Ordered-Lists"></a>
<h5>Ordered Lists<a href="#document-top" title="Go to top"></a></h5>

<p>The following HastyScribe Markdown code:</p>

<pre><code>1. First item
2. Second item
3. Third item
</code></pre>

<p>Produces the following output:</p>

<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>


<div class="tip"><p>Tip</p>

<p>You don&rsquo;t have to write numbers in order &ndash; any number followed by a dot will do.</p></div>

<a id="Alphabetical-Lists"></a>
<h5>Alphabetical Lists<a href="#document-top" title="Go to top"></a></h5>

<p>The following HastyScribe Markdown code:</p>

<pre><code>a. First item
b. Second item
c. Third item
</code></pre>

<p>Produces the following output:</p>

<ol type="a">
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>


<div class="tip"><p>Tip</p>

<p>You don&rsquo;t have to write letters in order &ndash; any letter followed by a dot will do.</p></div>

<a id="Checklists"></a>
<h5>Checklists<a href="#document-top" title="Go to top"></a></h5>

<p>The following HastyScribe Markdown code:</p>

<pre><code>- [ ] Do something
- [ ] Do something else
- [x] Done!
</code></pre>

<p>Produces the following output:</p>

<ul>
<li>[ ] Do something</li>
<li>[ ] Do something else</li>
<li>[x] Done!</li>
</ul>


<a id="Unstyled-Lists"></a>
<h5>Unstyled Lists<a href="#document-top" title="Go to top"></a></h5>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %unstyled%
&gt; * An item
&gt; * Another item
&gt; * And another...
</code></pre>

<p>Produces the following output:</p>

<div class="unstyled"><ul>
<li>An item</li>
<li>Another item</li>
<li>And another&hellip;</li>
</ul>
</div>

<a id="Nested-Lists"></a>
<h5>Nested Lists<a href="#document-top" title="Go to top"></a></h5>

<p>To create a list within a list, simply indent the whole nested list with four space.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>* This is a normal list
* Another item
    * A nested unordered list
    * Another item
* Back in the main list
    a. A nested alphabetical list
    b. Another item
</code></pre>

<p>Produces the following output:</p>

<ul>
<li>This is a normal list</li>
<li>Another item

<ul>
<li>A nested unordered list</li>
<li>Another item</li>
</ul>
</li>
<li>Back in the main list

<ol type="a">
<li> A nested alphabetical list</li>
<li> Another item</li>
</ol>
</li>
</ul>


<a id="Definition-Lists"></a>
<h5>Definition Lists<a href="#document-top" title="Go to top"></a></h5>

<p>In some cases you may want to write a list of terms and their corresponding definitions. You could use an ordinary unordered list, but semantically speaking the <em>proper</em> type of list to use in this case is a definition list.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>unordered list
: A list for unordered items. Also called _bulleted list_.
ordered list 
: A list for ordered items. Also called _numbered list_.
alphabetical list
: Technically speaking just an ordered list, but formatted with letters instead 
  of numbers
definition list
: A list of terms and definitions.
</code></pre>

<p>Produces the following output:</p>

<dl>
<dt>unordered list</dt>
<dd>A list for unordered items. Also called <em>bulleted list</em>.</dd>
<dt>ordered list </dt>
<dd>A list for ordered items. Also called <em>numbered list</em>.</dd>
<dt>alphabetical list</dt>
<dd>Technically speaking just an ordered list, but formatted with letters instead
of numbers</dd>
<dt>definition list</dt>
<dd>A list of terms and definitions.</dd>
</dl>

<p>Alternatively, you can write the above definition list as follows:</p>

<pre><code>=unordered list=
  A list for unordered items. Also called _bulleted list_.
=ordered list=
  A list for ordered items. Also called _numbered list_.
=alphabetical list=
  Technically speaking just an ordered list, but formatted with letters instead
  of numbers
=definition list=
  A list of terms and definitions.
</code></pre>

<a id="Class-Blocks"></a>
<h4>Class Blocks<a href="#document-top" title="Go to top"></a></h4>

<a id="Notes"></a>
<h5>Notes<a href="#document-top" title="Go to top"></a></h5>

<p><a href="http://www.pell.portland.or.us/~orc/Code/discount/">Discount</a> supports the definition of <em>class blocks</em>: <span class="kwd">div</span>s with a class attribute. The syntax is very similar to the one used for <a href="#Block-Quotes">block quotes</a>, with the addition of the class name wrapped in <span class="kwd">%</span>s on the first line.</p>

<p>In HastyScribe , this syntax is used to produce notes, <a href="#Tips">tips</a>, <a href="#Warnings">warmings</a>, <a href="#Sidebars">sidebars</a> and <a href="#Terminal-Sessions">terminal sessions</a>.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %note%
&gt; Note
&gt; 
&gt; This is a note.
</code></pre>

<p>Produces the following output:</p>

<div class="note"><p>Note</p>

<p>This is a note.</p></div>

<a id="Tips"></a>
<h5>Tips<a href="#document-top" title="Go to top"></a></h5>

<p>Tips are used for optional information that can help the user in some way.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %tip%
&gt; Tip
&gt; 
&gt; This is a tip.
</code></pre>

<p>Produces the following output:</p>

<div class="tip"><p>Tip</p>

<p>This is a tip.</p></div>

<a id="Warnings"></a>
<h5>Warnings<a href="#document-top" title="Go to top"></a></h5>

<p>Warnings are used for important information the user should not overlook.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %warning%
&gt; Warning
&gt; 
&gt; This is a warning or an important note.
</code></pre>

<p>Produces the following output:</p>

<div class="warning"><p>Warning</p>

<p>This is a warning or an important note.</p></div>

<a id="Sidebars"></a>
<h5>Sidebars<a href="#document-top" title="Go to top"></a></h5>

<p>Sidebars are used for digressions and asides.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %sidebar%
&gt; This is a _sidebar_
&gt; 
&gt; Although not always placed on the side of the page, _sidebars_ contain 
&gt; additional content and asides.
</code></pre>

<p>Produces the following output:</p>

<div class="sidebar"><p>This is a <em>sidebar</em></p>

<p>Although not always placed on the side of the page, <em>sidebars</em> contain additional content and asides.</p></div>

<a id="Blank-Sidebars"></a>
<h5>Blank Sidebars<a href="#document-top" title="Go to top"></a></h5>

<p>Blank sidebars can be customized to include custom icons. They are suitable for conditional (operating system or browser specific) instructions.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %blank-sidebar%
&gt; [](class:chrome)[](class:firefox)[](class:edge) Browser Support
&gt; 
&gt; This web app supports only modern browsers, i.e. the latest versions of Google Chrome, Mozilla Firefox and Microsoft Edge, but _not_ Microsoft Internet Explorer.
</code></pre>

<p>Produces the following output:</p>

<div class="blank-sidebar"><p><span class="chrome"></span><span class="firefox"></span><span class="edge"></span> Browser Support</p>

<p>This web app supports only modern browsers, i.e. the latest versions of Google Chrome, Mozilla Firefox and Microsoft Edge, but <em>not</em> Microsoft Internet Explorer.</p></div>

<a id="Terminal-Sessions"></a>
<h5>Terminal Sessions<a href="#document-top" title="Go to top"></a></h5>

<p>Terminal sessions are used to display commands entered in a terminal, in sequence, without displaying their output.</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %terminal%
&gt; 
&gt; cd src
&gt; 
&gt; ./configure
&gt; 
&gt; make &amp;&amp; sudo make install
</code></pre>

<p>Produces the following output:</p>

<div class="terminal"><p>cd src</p>

<p>./configure</p>

<p>make &amp;&amp; sudo make install</p></div>

<p>If commands must be executed as a super-user, use the <span class="kwd">terminal-su</span> class instead:</p>

<p>The following HastyScribe Markdown code:</p>

<pre><code>&gt; %terminal-su%
&gt; 
&gt; shutdown -h now
</code></pre>

<p>Produces the following output:</p>

<div class="terminal-su"><p>shutdown -h now</p></div>
<div class="footnotes">
<hr/>
<ol>
<li id="fn:1">
This is a footnote!<a href="#fnref:1" rev="footnote">&#8617;</a></li>
</ol>
</div>

    </div>
    <div id="footer">
      <p><span class="copy"></span> Fabio Cevasco &ndash; August 31, 2023</p>
      <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe" class="hastyscribe-logo">  <img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='350.755'%20height='102.312'%3E%3Cg%20font-family='Mr%20Bedfort'%20font-size='72'%20font-weight='400'%20letter-spacing='0'%20style='line-height:125%25;-inkscape-font-specification:Mr%20Bedfort'%20word-spacing='0'%3E%3Cpath%20d='m17.352%2044.784-1.296-5.616c-3.552-1.2-7.2-2.52-10.944-3.96-.048%200-.072.024-.072.072.048%201.008%204.152%204.176%2012.312%209.504m6.12-3.24c.96%204.224%201.56%206.96%201.8%208.208%2011.424%206.96%2018.744%2010.464%2021.96%2010.512l-3.888-13.896c-6.432-1.248-13.056-2.856-19.872-4.824M18%204.752l-.288%204.608c0%204.464%201.512%2013.32%204.536%2026.568%206.24%201.92%2012.792%203.576%2019.656%204.968-1.968-7.44-3.408-13.848-4.32-19.224-.912-5.424-1.368-11.208-1.368-17.352.096-.528%201.032-1.368%202.808-2.52C40.848.6%2042.144%200%2042.912%200c.384%200%20.576.264.576.792l-.36%205.04c0%207.776%202.016%2019.872%206.048%2036.288%205.664.864%2010.944%201.368%2015.84%201.512.336%200%20.504.168.504.504%200%20.288-1.056%201.008-3.168%202.16-2.112%201.152-3.36%201.728-3.744%201.728-2.256%200-4.944-.192-8.064-.576l2.808%2010.08c0%20.816-1.704%202.208-5.112%204.176-3.84%200-11.376-3.336-22.608-10.008.48%202.688.768%205.04.864%207.056-.096.096-1.056.576-2.88%201.44-1.824.864-2.856%201.296-3.096%201.296-.624%200-.936-.456-.936-1.368-.432-4.56-1.056-9-1.872-13.32-4.896-3.168-9.072-6.048-12.528-8.64C1.728%2035.52%200%2033.912%200%2033.336c0-.768%201.584-2.088%204.752-3.96l.216-.144c3.264%201.536%206.48%202.88%209.648%204.032-2.736-10.416-4.104-17.496-4.104-21.24%200-1.68.192-3%20.576-3.96.096-.144%201.152-.816%203.168-2.016%202.016-1.2%203.168-1.8%203.456-1.8.192%200%20.288.168.288.504M78.01%2040.104c.144-.288%201.44-.432%203.888-.432%202.496%200%203.744.36%203.744%201.08%200%20.144-.144.432-.432.864-1.68%202.304-2.52%204.704-2.52%207.2%200%202.496.576%204.56%201.728%206.192%201.2%201.584%202.712%202.376%204.536%202.376%202.976%200%206-2.112%209.072-6.336l.504.864c-3.744%205.952-7.872%208.928-12.384%208.928-3.408%200-6.024-1.752-7.848-5.256-.768%201.152-2.016%202.232-3.744%203.24-1.728%201.008-3.36%201.512-4.896%201.512-4.176%200-6.264-1.752-6.264-5.256%200-2.736%201.152-5.592%203.456-8.568%202.352-3.024%204.656-4.536%206.912-4.536.192%200%20.288.072.288.216%200%20.144-.096.312-.288.504-1.008.528-1.872%201.632-2.592%203.312a13.12%2013.12%200%200%200-1.008%205.04c0%203.504%201.344%205.256%204.032%205.256.768%200%201.488-.192%202.16-.576.72-.432%201.152-1.032%201.296-1.8a14.973%2014.973%200%200%201-.936-5.256c0-1.824.072-3.36.216-4.608.384-2.64.744-3.96%201.08-3.96'/%3E%3Cpath%20d='m119.772%2051.048.504.864c-2.016%203.216-4.44%205.664-7.272%207.344-2.832%201.728-5.52%202.592-8.064%202.592-5.136%200-8.544-2.208-10.224-6.624%200-.24.552-1.032%201.656-2.376%201.104-1.344%201.824-2.016%202.16-2.016.384%200%20.6.12.648.36.288%201.536%201.08%203.168%202.376%204.896%201.344%201.728%202.568%202.592%203.672%202.592%201.728%200%202.616-.48%202.664-1.44%200-1.488-1.752-3.744-5.256-6.768-1.296-1.152-2.496-2.616-3.6-4.392-1.056-1.824-1.584-3.696-1.584-5.616%200-.384.072-.648.216-.792%202.112-1.92%203.504-2.88%204.176-2.88.528%200%20.792.408.792%201.224.048%201.776.792%203.624%202.232%205.544%201.488%201.872%202.928%203.672%204.32%205.4%201.44%201.728%202.16%203.456%202.16%205.184%200%201.68-.84%203.192-2.52%204.536%203.936-.096%207.584-2.64%2010.944-7.632'/%3E%3Cpath%20d='M122.633%2024.264c.768%2022.56%204.248%2033.84%2010.44%2033.84%202.64%200%205.808-2.352%209.504-7.056l.504.864c-4.512%206.72-8.832%2010.08-12.96%2010.08-4.08%200-7.392-3.12-9.936-9.36-2.544-6.288-3.888-14.64-4.032-25.056%200%200-.347-5.071%200-4.827.096-3.648.264-5.229.504-8.493%200-.432.216-.72.648-.864%202.88-1.152%204.488-1.728%204.824-1.728.384%200%20.576.216.576.648a165.13%20165.13%200%200%200-.144%206.552'/%3E%3Cpath%20d='M157.87%2082.728c0%203.984%201.176%207.728%203.528%2011.232%202.352%203.504%204.536%205.256%206.552%205.256%201.728%200%202.592-1.536%202.592-4.608%200-2.256-.84-5.712-2.52-10.368a1998.05%201998.05%200%200%200-2.808-7.704%20452.798%20452.798%200%200%201-2.952-8.136c-2.928%204.464-4.392%209.24-4.392%2014.328m15.84%205.544c0%204.704-.792%208.208-2.376%2010.512-1.584%202.352-3.6%203.528-6.048%203.528-3.12%200-6-1.68-8.64-5.04-2.592-3.312-3.888-7.44-3.888-12.384.336-3.408%201.248-6.552%202.736-9.432%201.536-2.88%203.576-5.856%206.12-8.928-1.632-4.464-2.76-7.992-3.384-10.584-2.064%202.64-4.44%203.96-7.128%203.96-2.688%200-5.04-1.368-7.056-4.104-2.016-2.736-3.024-6.672-3.024-11.808%200-.528.384-.888%201.152-1.08%202.304-.48%203.624-.72%203.96-.72.576%200%20.864.288.864.864%200%204.368.984%207.8%202.952%2010.296%201.248%201.536%202.808%202.304%204.68%202.304%201.008%200%202.064-.456%203.168-1.368-.72-3.216-1.08-5.904-1.08-8.064%200-2.208.504-3.816%201.512-4.824%202.064-1.2%203.216-1.8%203.456-1.8.48%200%20.72.36.72%201.08%200%205.232.96%2010.752%202.88%2016.56l1.224%203.816c3.6-3.888%206.336-7.224%208.208-10.008l.504.864c-1.152%201.824-2.208%203.312-3.168%204.464a161.359%20161.359%200%200%201-3.096%203.6%20676.433%20676.433%200%200%201-2.016%202.376c3.504%2010.032%205.424%2015.912%205.76%2017.64.672%203.408%201.008%206.168%201.008%208.28'/%3E%3Cpath%20d='M178.334%2012.888c0%204.608%202.736%208.904%208.208%2012.888%202.544-6.528%203.816-11.712%203.816-15.552%200-1.68-.552-3.24-1.656-4.68-1.104-1.44-2.352-2.16-3.744-2.16-1.344%200-2.568.72-3.672%202.16-1.056%201.44-1.824%202.88-2.304%204.32-.432%201.392-.648%202.4-.648%203.024m-9.36%2046.944c-.336.336-.624.504-.864.504-.384%200-.576-.192-.576-.576%200-.384.096-.696.288-.936%202.16-2.4%204.704-6.024%207.632-10.872a162.099%20162.099%200%200%200%208.064-15.12c-6.144-4.272-9.216-8.64-9.216-13.104%200-2.976.696-6%202.088-9.072%201.44-3.072%203.336-5.616%205.688-7.632%202.4-2.016%204.68-3.024%206.84-3.024%202.208%200%203.696.528%204.464%201.584.816%201.008%201.224%202.496%201.224%204.464%200%203.696-2.232%2010.608-6.696%2020.736%201.584%201.056%203.696%202.352%206.336%203.888a295.464%20295.464%200%200%201%206.84%203.888%2056.857%2056.857%200%200%201%205.76%203.816c3.936%203.024%205.904%206.312%205.904%209.864%200%203.504-1.824%206.792-5.472%209.864-3.648%203.024-7.344%204.536-11.088%204.536-5.904%200-11.16-3.072-15.768-9.216-.528-.72-.792-1.32-.792-1.8%200-.528.6-1.272%201.8-2.232%201.2-1.008%202.136-1.512%202.808-1.512.144%200%20.264.072.36.216%201.296%202.256%203.624%204.656%206.984%207.2%203.36%202.544%206.648%203.816%209.864%203.816%203.984-.288%205.976-2.256%205.976-5.904%200-3.072-1.752-5.952-5.256-8.64-2.592-1.968-5.784-4.032-9.576-6.192-3.792-2.208-6.408-3.792-7.848-4.752-5.808%2012.192-11.064%2020.928-15.768%2026.208M230.382%2041.688c0-1.44-.912-2.16-2.736-2.16-1.824%200-3.336.816-4.536%202.448-1.2%201.632-1.8%203.72-1.8%206.264%200%202.496.96%204.776%202.88%206.84%201.968%202.016%204.896%203.024%208.784%203.024%202.448%200%204.824-.576%207.128-1.728%202.352-1.2%204.344-2.976%205.976-5.328l.504.864c-1.728%203.12-4.392%205.544-7.992%207.272-3.552%201.728-7.152%202.592-10.8%202.592-3.6%200-6.552-.768-8.856-2.304-2.256-1.488-3.384-3.648-3.384-6.48%200-3.6%201.416-7.008%204.248-10.224%202.88-3.216%206.456-4.824%2010.728-4.824%201.488%200%202.592.384%203.312%201.152.72.72%201.08%201.704%201.08%202.952%200%201.2-.432%202.4-1.296%203.6-.864%201.152-1.848%201.728-2.952%201.728-.576%200-1.176-.216-1.8-.648-.576-.48-.864-.864-.864-1.152%200-.336.12-.6.36-.792.24-.24.528-.456.864-.648.768-.384%201.152-1.2%201.152-2.448'/%3E%3Cpath%20d='m251.359%2047.088-1.368-.072c-.48%200-.816.216-1.008.648-.576%201.44-1.488%203.072-2.736%204.896l-.576-.792c.96-1.296%201.704-2.928%202.232-4.896%200-.384-.168-.648-.504-.792-2.16-.72-3.24-2.616-3.24-5.688%200-.672.576-1.296%201.728-1.872%201.152-.624%202.112-.936%202.88-.936.768%200%201.152.336%201.152%201.008%200%203.6%201.68%205.4%205.04%205.4.816%200%201.464-.072%201.944-.216.528-.192.816-.288.864-.288.48%200%20.72.36.72%201.08%200%20.672-.192%201.152-.576%201.44-.336.24-.72.792-1.152%201.656-.432.816-.648%201.776-.648%202.88%200%202.16.624%203.864%201.872%205.112%201.296%201.2%202.88%201.8%204.752%201.8%201.92%200%203.816-.552%205.688-1.656%201.872-1.104%203.504-2.688%204.896-4.752l.504.864c-1.68%202.928-4.008%205.28-6.984%207.056-2.976%201.776-5.64%202.664-7.992%202.664-4.8%200-7.2-2.184-7.2-6.552%200-.816.288-1.92.864-3.312.576-1.392%201.152-2.568%201.728-3.528l.864-1.44c0-.192-.072-.288-.216-.288-1.536.384-2.712.576-3.528.576'/%3E%3Cpath%20d='M273.24%2042.84c-.24%202.016-.36%203.672-.36%204.968%200%204.56.864%208.112%202.592%2010.656%201.776%202.496%203.912%203.744%206.408%203.744%202.544%200%205.064-.888%207.56-2.664%202.496-1.728%204.824-4.272%206.984-7.632l-.504-.864c-3.744%205.136-7.2%207.704-10.368%207.704-2.016%200-3.648-1.08-4.896-3.24-1.248-2.16-1.872-5.088-1.872-8.784%200-1.92.168-3.864.504-5.832%200-.432-.192-.648-.576-.648-.336%200-1.944.576-4.824%201.728-.432.144-.648.432-.648.864m5.976-15.48c.768.816%201.152%201.8%201.152%202.952s-.384%202.136-1.152%202.952c-.72.816-1.608%201.224-2.664%201.224-1.008%200-1.872-.408-2.592-1.224-.72-.816-1.08-1.8-1.08-2.952s.36-2.136%201.08-2.952c.72-.816%201.584-1.224%202.592-1.224%201.056%200%201.944.408%202.664%201.224'/%3E%3Cpath%20d='M310.14%2045.36c-.576%200-.864.576-.864%201.728%200%201.152.456%202.52%201.368%204.104.96%201.536%202.16%202.76%203.6%203.672.048-.24.072-.6.072-1.08%200-2.112-.408-4.032-1.224-5.76-.816-1.776-1.8-2.664-2.952-2.664m-13.464-24.912c0%209.6%201.104%2017.76%203.312%2024.48%202.16-5.904%203.24-13.8%203.24-23.688%200-4.272-.264-7.8-.792-10.584s-1.248-4.176-2.16-4.176c-1.2%200-2.112%201.296-2.736%203.888-.576%202.544-.864%205.904-.864%2010.08m11.448-6.84c0%204.704-.816%2010.32-2.448%2016.848-1.584%206.528-3.312%2011.832-5.184%2015.912%201.488%204.224%203.192%207.488%205.112%209.792%201.92%202.256%203.672%203.384%205.256%203.384s2.64-.984%203.168-2.952c-2.16-.96-4.008-2.496-5.544-4.608-1.488-2.112-2.232-4.224-2.232-6.336%200-1.104.264-1.992.792-2.664.528-.672%201.296-1.008%202.304-1.008%202.496%200%204.416.96%205.76%202.88%201.392%201.872%202.088%204.128%202.088%206.768%200%201.488-.24%202.904-.72%204.248.48.144%201.032.216%201.656.216%202.64%200%204.992-1.68%207.056-5.04l.576.72c-2.16%203.696-4.872%205.544-8.136%205.544-.384%200-.96-.048-1.728-.144-1.68%203.12-4.224%204.68-7.632%204.68-3.936%200-7.536-2.352-10.8-7.056-1.584-2.352-2.856-5.568-3.816-9.648-1.008-4.128-1.512-8.712-1.512-13.752%200-5.04.432-9.6%201.296-13.68.816-4.08%202.064-7.44%203.744-10.08%201.68-2.64%203.6-3.96%205.76-3.96%203.456%200%205.184%203.312%205.184%209.936'/%3E%3Cpath%20d='m332.694%2037.656.072-.936c0-.576-.648-.864-1.944-.864a5.858%205.858%200%200%200-3.528%201.152c-1.008.768-1.512%201.8-1.512%203.096%200%202.304%201.656%203.456%204.968%203.456.528%200%201.056-.072%201.584-.216a5.437%205.437%200%200%201%201.728-.288c.576%200%20.864.192.864.576%200%20.048-.192.168-.576.36-.384.144-.864.384-1.44.72-.528.336-1.08.768-1.656%201.296-1.344%201.248-2.016%202.952-2.016%205.112s.648%203.816%201.944%204.968c1.296%201.104%202.976%201.656%205.04%201.656s4.176-.6%206.336-1.8a14.695%2014.695%200%200%200%205.256-4.896l.504.864c-1.824%203.168-4.368%205.664-7.632%207.488-3.216%201.872-6.168%202.808-8.856%202.808-2.64%200-4.68-.552-6.12-1.656-1.392-1.104-2.088-2.52-2.088-4.248%200-1.776.432-3.408%201.296-4.896.864-1.488%201.608-2.544%202.232-3.168.672-.672%201.152-1.128%201.44-1.368.336-.288.504-.48.504-.576%200-.144-.024-.216-.072-.216-1.536.576-3.024.864-4.464.864-2.544%200-3.816-1.032-3.816-3.096%200-2.784%201.584-5.184%204.752-7.2%203.168-2.016%205.928-3.024%208.28-3.024%202.4%200%203.6.576%203.6%201.728%200%20.72-.384%201.488-1.152%202.304-.768.816-1.464%201.224-2.088%201.224-.96%200-1.44-.408-1.44-1.224'/%3E%3C/g%3E%3Ctext%20xml:space='preserve'%20x='280.368'%20y='13.976'%20font-family='Mr%20Bedfort'%20font-size='40'%20font-weight='400'%20letter-spacing='0'%20style='line-height:125%25;-inkscape-font-specification:Mr%20Bedfort'%20transform='translate(-177.39%20-82.362)'%20word-spacing='0'/%3E%3Cpath%20fill-rule='evenodd'%20d='M99.36%2029.25c-.061-.106.474-.57%201.596-1.31%201.123-.74%202.835-1.75%205.15-2.876%202.313-1.127%205.233-2.365%208.729-3.583%203.496-1.218%207.573-2.41%2012.103-3.567%205.291-1.357%2011.259-2.645%2017.812-3.778%206.554-1.133%2013.693-2.108%2021.297-2.923%2013.686-1.47%2028.926-2.381%2045.127-2.565%207.483-.085%2015.175-.02%2023.015.229%207.834.248%2015.51.67%2022.968%201.25%2014.92%201.156%2028.998%202.957%2041.703%205.435%206.104%201.186%2011.931%202.505%2017.35%204.046%205.42%201.541%2010.433%203.303%2014.965%205.263%204.145%201.79%207.906%203.808%2011.06%206.11%201.442%201.044%202.772%202.171%203.92%203.37%201.146%201.199%202.11%202.469%202.864%203.785a13.434%2013.434%200%200%201%201.512%203.986c.295%201.494.276%202.914.074%204.176a14.011%2014.011%200%200%201-1.3%203.977%2016.406%2016.406%200%200%201-1.587%202.577c-.977%201.305-1.626%201.855-1.732%201.773-.106-.082.333-.802%201.064-2.196a22.47%2022.47%200%200%200%201.191-2.616c.393-1.05.749-2.284.853-3.7a10.664%2010.664%200%200%200-.315-3.59c-.293-1.107-.799-2.24-1.502-3.34-.713-1.123-1.625-2.201-2.717-3.229-1.092-1.027-2.363-2.005-3.75-2.943-3.044-2.044-6.684-3.82-10.755-5.44-4.459-1.771-9.383-3.354-14.721-4.736-5.338-1.383-11.09-2.564-17.15-3.648-12.586-2.244-26.524-3.873-41.336-4.949a561.489%20561.489%200%200%200-22.791-1.181%20602.786%20602.786%200%200%200-22.847-.285c-16.088.1-31.21.836-44.806%202.057-7.56.68-14.646%201.492-21.154%202.44-6.509.95-12.44%202.035-17.714%203.176-4.53.984-8.59%201.971-12.085%202.975a106.17%20106.17%200%200%200-8.788%202.925c-2.358.907-4.145%201.7-5.364%202.228-1.22.527-1.876.783-1.938.677z'/%3E%3C/svg%3E
" width="80" height="23" alt="HastyScribe">
  </a></p>
    </div>
  </div>
  
</body>