md2man 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -0
- data/VERSION.markdown +24 -0
- data/bin/md2man-html +1 -1
- data/bin/md2man-rake +1 -1
- data/bin/md2man-roff +1 -1
- data/lib/md2man/roff.rb +346 -336
- data/lib/md2man/version.rb +1 -1
- data/man/index.html +1 -1
- data/man/man0/README.html +1 -1
- data/man/man0/VERSION.html +14 -2
- data/man/man0/VERSION.markdown +24 -0
- data/man/man1/md2man-html.1 +1 -1
- data/man/man1/md2man-html.1.html +2 -2
- data/man/man1/md2man-rake.1 +1 -1
- data/man/man1/md2man-rake.1.html +2 -2
- data/man/man1/md2man-roff.1 +1 -1
- data/man/man1/md2man-roff.1.html +2 -2
- data/man/man5/md2man.5 +1 -1
- data/man/man5/md2man.5.html +2 -2
- data/man/man5/md2man.5.markdown +1 -1
- data/test/md2man/roff_test.rb +77 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb8a935bae8676bdadc4ccbe6f2aadb8d876972d
|
4
|
+
data.tar.gz: 337ef32c40ab8f70332d80b5e6a3421ef91f4e75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf58345ff2571169edcf787698f48aaf2c53b3089001e82a19a73e8aca672c9b9333b376373096e42da70e80649fce036055567367f3e7f590d88573f43d72b0
|
7
|
+
data.tar.gz: 7d1ae30dd62482ac8c25d42dd4f8e359402ddf59d8b916bdde207727963595419b68cb1da8aeaec29f017d8b8595d61c7c9b1c010540b4130fbd66c07043aea8
|
data/LICENSE
CHANGED
@@ -4,6 +4,7 @@ Copyright 2011 Suraj N. Kurapati <https://github.com/sunaku>
|
|
4
4
|
Thanks to 2011 Vicent Marti <https://github.com/vmg>
|
5
5
|
Thanks to 2012 Postmodern <https://github.com/postmodern>
|
6
6
|
Thanks to 2013 Bastien Dejean <https://github.com/baskerville>
|
7
|
+
Thanks to 2013 Nick Fagerlund <https://github.com/nfagerlund>
|
7
8
|
|
8
9
|
Permission to use, copy, modify, and/or distribute this software for any
|
9
10
|
purpose with or without fee is hereby granted, provided that the above
|
data/VERSION.markdown
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
## Version 2.0.2 (2013-09-08)
|
2
|
+
|
3
|
+
Patch:
|
4
|
+
|
5
|
+
* GH-14: escape single quotes at beginning of lines
|
6
|
+
|
7
|
+
See the "CONTROL CHARACTERS" section in the groff(7) manual for details.
|
8
|
+
|
9
|
+
Thanks to Nick Fagerlund for reporting this bug.
|
10
|
+
|
11
|
+
* inhibit periods at line beginnings with \& escape
|
12
|
+
|
13
|
+
* escape text line backslashes as "\e" per groff(7)
|
14
|
+
|
15
|
+
* better documentation for escaping in normal_text()
|
16
|
+
|
17
|
+
* it's better to escape backslashes as \[rs] than \e
|
18
|
+
|
19
|
+
See "Single-Character Escapes" section in groff(7).
|
20
|
+
|
21
|
+
Other:
|
22
|
+
|
23
|
+
* switch from double-quoted strings to single quotes
|
24
|
+
|
1
25
|
## Version 2.0.1 (2013-08-29)
|
2
26
|
|
3
27
|
Patch:
|
data/bin/md2man-html
CHANGED
data/bin/md2man-rake
CHANGED
data/bin/md2man-roff
CHANGED
data/lib/md2man/roff.rb
CHANGED
@@ -197,7 +197,17 @@ module Md2Man::Roff
|
|
197
197
|
#---------------------------------------------------------------------------
|
198
198
|
|
199
199
|
def normal_text text
|
200
|
-
text
|
200
|
+
if text then text.
|
201
|
+
# escape backslashes so that they appear in the printable output
|
202
|
+
gsub('\\', '\\[rs]').
|
203
|
+
|
204
|
+
# inhibit soft-hyphens so that they appear in the printable output
|
205
|
+
gsub('-', '\\-').
|
206
|
+
|
207
|
+
# inhibit line-beginning control characters (period and single-quote)
|
208
|
+
# by prefixing a non-printable, zero-width glyph (backslash-ampersand)
|
209
|
+
gsub(/^(?=[.'])/, '\\\\&')
|
210
|
+
end
|
201
211
|
end
|
202
212
|
|
203
213
|
def entity text
|
@@ -520,346 +530,346 @@ private
|
|
520
530
|
|
521
531
|
# see groff_char(7) and "Special Characters" in groff(7)
|
522
532
|
UNICODE_TO_GLYPH = {
|
523
|
-
0x0022 =>
|
524
|
-
0x0023 =>
|
525
|
-
0x0024 =>
|
533
|
+
0x0022 => '\\[dq]',
|
534
|
+
0x0023 => '\\[sh]',
|
535
|
+
0x0024 => '\\[Do]',
|
526
536
|
0x0026 => '&',
|
527
|
-
0x0027 =>
|
528
|
-
0x002b =>
|
529
|
-
0x002f =>
|
537
|
+
0x0027 => '\\[aq]',
|
538
|
+
0x002b => '\\[pl]',
|
539
|
+
0x002f => '\\[sl]',
|
530
540
|
0x003c => '<',
|
531
|
-
0x003d =>
|
541
|
+
0x003d => '\\[eq]',
|
532
542
|
0x003e => '>',
|
533
|
-
0x0040 =>
|
534
|
-
0x005b =>
|
535
|
-
0x005c =>
|
536
|
-
0x005d =>
|
537
|
-
0x005e =>
|
538
|
-
0x005f =>
|
539
|
-
0x007b =>
|
540
|
-
0x007c =>
|
541
|
-
#0x007c =>
|
542
|
-
0x007d =>
|
543
|
-
0x007e =>
|
544
|
-
0x00a0 =>
|
545
|
-
0x00a1 =>
|
546
|
-
0x00a2 =>
|
547
|
-
0x00a3 =>
|
548
|
-
0x00a4 =>
|
549
|
-
0x00a5 =>
|
550
|
-
0x00a6 =>
|
551
|
-
0x00a7 =>
|
552
|
-
0x00a8 =>
|
553
|
-
0x00a9 =>
|
554
|
-
0x00aa =>
|
555
|
-
0x00ab =>
|
556
|
-
0x00ac =>
|
557
|
-
#0x00ac =>
|
543
|
+
0x0040 => '\\[at]',
|
544
|
+
0x005b => '\\[lB]',
|
545
|
+
0x005c => '\\[rs]',
|
546
|
+
0x005d => '\\[rB]',
|
547
|
+
0x005e => '\\[ha]',
|
548
|
+
0x005f => '\\[nl]',
|
549
|
+
0x007b => '\\[lC]',
|
550
|
+
0x007c => '\\[ba]',
|
551
|
+
#0x007c => '\\[or]',
|
552
|
+
0x007d => '\\[rC]',
|
553
|
+
0x007e => '\\[ti]',
|
554
|
+
0x00a0 => '\\~',
|
555
|
+
0x00a1 => '\\[r!]',
|
556
|
+
0x00a2 => '\\[ct]',
|
557
|
+
0x00a3 => '\\[Po]',
|
558
|
+
0x00a4 => '\\[Cs]',
|
559
|
+
0x00a5 => '\\[Ye]',
|
560
|
+
0x00a6 => '\\[bb]',
|
561
|
+
0x00a7 => '\\[sc]',
|
562
|
+
0x00a8 => '\\[ad]',
|
563
|
+
0x00a9 => '\\[co]',
|
564
|
+
0x00aa => '\\[Of]',
|
565
|
+
0x00ab => '\\[Fo]',
|
566
|
+
0x00ac => '\\[no]',
|
567
|
+
#0x00ac => '\\[tno]',
|
558
568
|
0x00ad => '-',
|
559
|
-
0x00ae =>
|
560
|
-
0x00af =>
|
561
|
-
0x00b0 =>
|
562
|
-
0x00b1 =>
|
563
|
-
#0x00b1 =>
|
564
|
-
0x00b2 =>
|
565
|
-
0x00b3 =>
|
566
|
-
0x00b4 =>
|
567
|
-
0x00b5 =>
|
568
|
-
0x00b6 =>
|
569
|
-
0x00b7 =>
|
570
|
-
0x00b8 =>
|
571
|
-
0x00b9 =>
|
572
|
-
0x00ba =>
|
573
|
-
0x00bb =>
|
574
|
-
0x00bc =>
|
575
|
-
0x00bd =>
|
576
|
-
0x00be =>
|
577
|
-
0x00bf =>
|
578
|
-
0x00c0 =>
|
579
|
-
0x00c1 =>
|
580
|
-
0x00c2 =>
|
581
|
-
0x00c3 =>
|
582
|
-
0x00c4 =>
|
583
|
-
0x00c5 =>
|
584
|
-
0x00c6 =>
|
585
|
-
0x00c7 =>
|
586
|
-
0x00c8 =>
|
587
|
-
0x00c9 =>
|
588
|
-
0x00ca =>
|
589
|
-
0x00cb =>
|
590
|
-
0x00cc =>
|
591
|
-
0x00cd =>
|
592
|
-
0x00ce =>
|
593
|
-
0x00cf =>
|
594
|
-
0x00d0 =>
|
595
|
-
0x00d1 =>
|
596
|
-
0x00d2 =>
|
597
|
-
0x00d3 =>
|
598
|
-
0x00d4 =>
|
599
|
-
0x00d5 =>
|
600
|
-
0x00d6 =>
|
601
|
-
0x00d7 =>
|
602
|
-
#0x00d7 =>
|
603
|
-
0x00d8 =>
|
604
|
-
0x00d9 =>
|
605
|
-
0x00da =>
|
606
|
-
0x00db =>
|
607
|
-
0x00dc =>
|
608
|
-
0x00dd =>
|
609
|
-
0x00de =>
|
610
|
-
0x00df =>
|
611
|
-
0x00e0 =>
|
612
|
-
0x00e1 =>
|
613
|
-
0x00e2 =>
|
614
|
-
0x00e3 =>
|
615
|
-
0x00e4 =>
|
616
|
-
0x00e5 =>
|
617
|
-
0x00e6 =>
|
618
|
-
0x00e7 =>
|
619
|
-
0x00e8 =>
|
620
|
-
0x00e9 =>
|
621
|
-
0x00ea =>
|
622
|
-
0x00eb =>
|
623
|
-
0x00ec =>
|
624
|
-
0x00ed =>
|
625
|
-
0x00ee =>
|
626
|
-
0x00ef =>
|
627
|
-
0x00f0 =>
|
628
|
-
0x00f1 =>
|
629
|
-
0x00f2 =>
|
630
|
-
0x00f3 =>
|
631
|
-
0x00f4 =>
|
632
|
-
0x00f5 =>
|
633
|
-
0x00f6 =>
|
634
|
-
0x00f7 =>
|
635
|
-
#0x00f7 =>
|
636
|
-
0x00f8 =>
|
637
|
-
0x00f9 =>
|
638
|
-
0x00fa =>
|
639
|
-
0x00fb =>
|
640
|
-
0x00fc =>
|
641
|
-
0x00fd =>
|
642
|
-
0x00fe =>
|
643
|
-
0x00ff =>
|
644
|
-
0x0131 =>
|
645
|
-
0x0132 =>
|
646
|
-
0x0133 =>
|
647
|
-
0x0141 =>
|
648
|
-
0x0142 =>
|
649
|
-
0x0152 =>
|
650
|
-
0x0153 =>
|
651
|
-
0x0160 =>
|
652
|
-
0x0161 =>
|
653
|
-
0x0178 =>
|
654
|
-
0x0192 =>
|
655
|
-
0x02c6 =>
|
656
|
-
0x02dc =>
|
657
|
-
0x0300 =>
|
658
|
-
0x0301 =>
|
659
|
-
0x0302 =>
|
660
|
-
0x0303 =>
|
661
|
-
0x0304 =>
|
662
|
-
0x0306 =>
|
663
|
-
0x0307 =>
|
664
|
-
0x0308 =>
|
665
|
-
0x030a =>
|
569
|
+
0x00ae => '\\[rg]',
|
570
|
+
0x00af => '\\[a-]',
|
571
|
+
0x00b0 => '\\[de]',
|
572
|
+
0x00b1 => '\\[+-]',
|
573
|
+
#0x00b1 => '\\[t+-]',
|
574
|
+
0x00b2 => '\\[S2]',
|
575
|
+
0x00b3 => '\\[S3]',
|
576
|
+
0x00b4 => '\\[aa]',
|
577
|
+
0x00b5 => '\\[mc]',
|
578
|
+
0x00b6 => '\\[ps]',
|
579
|
+
0x00b7 => '\\[pc]',
|
580
|
+
0x00b8 => '\\[ac]',
|
581
|
+
0x00b9 => '\\[S1]',
|
582
|
+
0x00ba => '\\[Om]',
|
583
|
+
0x00bb => '\\[Fc]',
|
584
|
+
0x00bc => '\\[14]',
|
585
|
+
0x00bd => '\\[12]',
|
586
|
+
0x00be => '\\[34]',
|
587
|
+
0x00bf => '\\[r?]',
|
588
|
+
0x00c0 => '\\[`A]',
|
589
|
+
0x00c1 => '\\[\'A]',
|
590
|
+
0x00c2 => '\\[^A]',
|
591
|
+
0x00c3 => '\\[~A]',
|
592
|
+
0x00c4 => '\\[:A]',
|
593
|
+
0x00c5 => '\\[oA]',
|
594
|
+
0x00c6 => '\\[AE]',
|
595
|
+
0x00c7 => '\\[,C]',
|
596
|
+
0x00c8 => '\\[`E]',
|
597
|
+
0x00c9 => '\\[\'E]',
|
598
|
+
0x00ca => '\\[^E]',
|
599
|
+
0x00cb => '\\[:E]',
|
600
|
+
0x00cc => '\\[`I]',
|
601
|
+
0x00cd => '\\[\'I]',
|
602
|
+
0x00ce => '\\[^I]',
|
603
|
+
0x00cf => '\\[:I]',
|
604
|
+
0x00d0 => '\\[-D]',
|
605
|
+
0x00d1 => '\\[~N]',
|
606
|
+
0x00d2 => '\\[`O]',
|
607
|
+
0x00d3 => '\\[\'O]',
|
608
|
+
0x00d4 => '\\[^O]',
|
609
|
+
0x00d5 => '\\[~O]',
|
610
|
+
0x00d6 => '\\[:O]',
|
611
|
+
0x00d7 => '\\[mu]',
|
612
|
+
#0x00d7 => '\\[tmu]',
|
613
|
+
0x00d8 => '\\[/O]',
|
614
|
+
0x00d9 => '\\[`U]',
|
615
|
+
0x00da => '\\[\'U]',
|
616
|
+
0x00db => '\\[^U]',
|
617
|
+
0x00dc => '\\[:U]',
|
618
|
+
0x00dd => '\\[\'Y]',
|
619
|
+
0x00de => '\\[TP]',
|
620
|
+
0x00df => '\\[ss]',
|
621
|
+
0x00e0 => '\\[`a]',
|
622
|
+
0x00e1 => '\\[\'a]',
|
623
|
+
0x00e2 => '\\[^a]',
|
624
|
+
0x00e3 => '\\[~a]',
|
625
|
+
0x00e4 => '\\[:a]',
|
626
|
+
0x00e5 => '\\[oa]',
|
627
|
+
0x00e6 => '\\[ae]',
|
628
|
+
0x00e7 => '\\[,c]',
|
629
|
+
0x00e8 => '\\[`e]',
|
630
|
+
0x00e9 => '\\[\'e]',
|
631
|
+
0x00ea => '\\[^e]',
|
632
|
+
0x00eb => '\\[:e]',
|
633
|
+
0x00ec => '\\[`i]',
|
634
|
+
0x00ed => '\\[\'i]',
|
635
|
+
0x00ee => '\\[^i]',
|
636
|
+
0x00ef => '\\[:i]',
|
637
|
+
0x00f0 => '\\[Sd]',
|
638
|
+
0x00f1 => '\\[~n]',
|
639
|
+
0x00f2 => '\\[`o]',
|
640
|
+
0x00f3 => '\\[\'o]',
|
641
|
+
0x00f4 => '\\[^o]',
|
642
|
+
0x00f5 => '\\[~o]',
|
643
|
+
0x00f6 => '\\[:o]',
|
644
|
+
0x00f7 => '\\[di]',
|
645
|
+
#0x00f7 => '\\[tdi]',
|
646
|
+
0x00f8 => '\\[/o]',
|
647
|
+
0x00f9 => '\\[`u]',
|
648
|
+
0x00fa => '\\[\'u]',
|
649
|
+
0x00fb => '\\[^u]',
|
650
|
+
0x00fc => '\\[:u]',
|
651
|
+
0x00fd => '\\[\'y]',
|
652
|
+
0x00fe => '\\[Tp]',
|
653
|
+
0x00ff => '\\[:y]',
|
654
|
+
0x0131 => '\\[.i]',
|
655
|
+
0x0132 => '\\[IJ]',
|
656
|
+
0x0133 => '\\[ij]',
|
657
|
+
0x0141 => '\\[/L]',
|
658
|
+
0x0142 => '\\[/l]',
|
659
|
+
0x0152 => '\\[OE]',
|
660
|
+
0x0153 => '\\[oe]',
|
661
|
+
0x0160 => '\\[vS]',
|
662
|
+
0x0161 => '\\[vs]',
|
663
|
+
0x0178 => '\\[:Y]',
|
664
|
+
0x0192 => '\\[Fn]',
|
665
|
+
0x02c6 => '\\[a^]',
|
666
|
+
0x02dc => '\\[a~]',
|
667
|
+
0x0300 => '\\[ga]',
|
668
|
+
0x0301 => '\\[aa]',
|
669
|
+
0x0302 => '\\[a^]',
|
670
|
+
0x0303 => '\\[a~]',
|
671
|
+
0x0304 => '\\[a-]',
|
672
|
+
0x0306 => '\\[ab]',
|
673
|
+
0x0307 => '\\[a.]',
|
674
|
+
0x0308 => '\\[ad]',
|
675
|
+
0x030a => '\\[ao]',
|
666
676
|
0x030b => '\\[a"]',
|
667
|
-
0x030c =>
|
668
|
-
0x0327 =>
|
669
|
-
0x0328 =>
|
670
|
-
0x0391 =>
|
671
|
-
0x0392 =>
|
672
|
-
0x0393 =>
|
673
|
-
0x0394 =>
|
674
|
-
0x0395 =>
|
675
|
-
0x0396 =>
|
676
|
-
0x0397 =>
|
677
|
-
0x0398 =>
|
678
|
-
0x0399 =>
|
679
|
-
0x039a =>
|
680
|
-
0x039b =>
|
681
|
-
0x039c =>
|
682
|
-
0x039d =>
|
683
|
-
0x039e =>
|
684
|
-
0x039f =>
|
685
|
-
0x03a0 =>
|
686
|
-
0x03a1 =>
|
687
|
-
0x03a3 =>
|
688
|
-
0x03a4 =>
|
689
|
-
0x03a5 =>
|
690
|
-
0x03a6 =>
|
691
|
-
0x03a7 =>
|
692
|
-
0x03a8 =>
|
693
|
-
0x03a9 =>
|
694
|
-
0x03b1 =>
|
695
|
-
0x03b2 =>
|
696
|
-
0x03b3 =>
|
697
|
-
0x03b4 =>
|
698
|
-
0x03b5 =>
|
699
|
-
0x03b6 =>
|
700
|
-
0x03b7 =>
|
701
|
-
0x03b8 =>
|
702
|
-
0x03b9 =>
|
703
|
-
0x03ba =>
|
704
|
-
0x03bb =>
|
705
|
-
0x03bc =>
|
706
|
-
0x03bd =>
|
707
|
-
0x03be =>
|
708
|
-
0x03bf =>
|
709
|
-
0x03c0 =>
|
710
|
-
0x03c1 =>
|
711
|
-
0x03c2 =>
|
712
|
-
0x03c3 =>
|
713
|
-
0x03c4 =>
|
714
|
-
0x03c5 =>
|
715
|
-
0x03c6 =>
|
716
|
-
0x03c7 =>
|
717
|
-
0x03c8 =>
|
718
|
-
0x03c9 =>
|
719
|
-
0x03d1 =>
|
720
|
-
0x03d5 =>
|
721
|
-
0x03d6 =>
|
722
|
-
0x03f5 =>
|
723
|
-
0x2010 =>
|
724
|
-
0x2013 =>
|
725
|
-
0x2014 =>
|
726
|
-
0x2018 =>
|
727
|
-
0x2019 =>
|
728
|
-
0x201a =>
|
729
|
-
0x201c =>
|
730
|
-
0x201d =>
|
731
|
-
0x201e =>
|
732
|
-
0x2020 =>
|
733
|
-
0x2021 =>
|
734
|
-
0x2022 =>
|
735
|
-
0x2030 =>
|
736
|
-
0x2032 =>
|
737
|
-
0x2033 =>
|
738
|
-
0x2039 =>
|
739
|
-
0x203a =>
|
740
|
-
0x203e =>
|
741
|
-
0x2044 =>
|
742
|
-
#0x20ac =>
|
743
|
-
0x20ac =>
|
744
|
-
0x210f =>
|
745
|
-
#0x210f =>
|
746
|
-
0x2111 =>
|
747
|
-
0x2118 =>
|
748
|
-
0x211c =>
|
749
|
-
0x2122 =>
|
750
|
-
0x2135 =>
|
751
|
-
0x215b =>
|
752
|
-
0x215c =>
|
753
|
-
0x215d =>
|
754
|
-
0x215e =>
|
755
|
-
0x2190 =>
|
756
|
-
0x2191 =>
|
757
|
-
0x2192 =>
|
758
|
-
0x2193 =>
|
759
|
-
0x2194 =>
|
760
|
-
0x2195 =>
|
761
|
-
0x21b5 =>
|
762
|
-
0x21d0 =>
|
763
|
-
0x21d1 =>
|
764
|
-
0x21d2 =>
|
765
|
-
0x21d3 =>
|
766
|
-
0x21d4 =>
|
767
|
-
0x21d5 =>
|
768
|
-
0x2200 =>
|
769
|
-
0x2202 =>
|
770
|
-
0x2203 =>
|
771
|
-
0x2205 =>
|
772
|
-
0x2207 =>
|
773
|
-
0x2208 =>
|
774
|
-
0x2209 =>
|
775
|
-
0x220b =>
|
776
|
-
0x220f =>
|
777
|
-
0x2210 =>
|
778
|
-
0x2211 =>
|
779
|
-
0x2212 =>
|
780
|
-
0x2213 =>
|
781
|
-
0x2217 =>
|
782
|
-
#0x221a =>
|
783
|
-
0x221a =>
|
784
|
-
0x221d =>
|
785
|
-
0x221e =>
|
786
|
-
0x2220 =>
|
787
|
-
0x2227 =>
|
788
|
-
0x2228 =>
|
789
|
-
0x2229 =>
|
790
|
-
0x222a =>
|
791
|
-
#0x222b =>
|
792
|
-
0x222b =>
|
793
|
-
0x2234 =>
|
794
|
-
#0x2234 =>
|
795
|
-
0x223c =>
|
796
|
-
0x2243 =>
|
797
|
-
0x2245 =>
|
798
|
-
#0x2248 =>
|
799
|
-
0x2248 =>
|
800
|
-
0x2260 =>
|
801
|
-
0x2261 =>
|
802
|
-
0x2264 =>
|
803
|
-
0x2265 =>
|
804
|
-
0x226a =>
|
805
|
-
0x226b =>
|
806
|
-
0x2282 =>
|
807
|
-
0x2283 =>
|
808
|
-
0x2284 =>
|
809
|
-
0x2286 =>
|
810
|
-
0x2287 =>
|
811
|
-
0x2295 =>
|
812
|
-
0x2297 =>
|
813
|
-
0x22a5 =>
|
814
|
-
0x22c5 =>
|
815
|
-
0x2308 =>
|
816
|
-
0x2309 =>
|
817
|
-
0x230a =>
|
818
|
-
0x230b =>
|
819
|
-
0x2329 =>
|
820
|
-
0x232a =>
|
821
|
-
0x239b =>
|
822
|
-
0x239c =>
|
823
|
-
0x239d =>
|
824
|
-
0x239e =>
|
825
|
-
0x239f =>
|
826
|
-
0x23a0 =>
|
827
|
-
0x23a1 =>
|
828
|
-
0x23a2 =>
|
829
|
-
0x23a3 =>
|
830
|
-
0x23a4 =>
|
831
|
-
0x23a5 =>
|
832
|
-
0x23a6 =>
|
833
|
-
#0x23a7 =>
|
834
|
-
0x23a7 =>
|
835
|
-
#0x23a8 =>
|
836
|
-
0x23a8 =>
|
837
|
-
#0x23a9 =>
|
838
|
-
0x23a9 =>
|
839
|
-
#0x23aa =>
|
840
|
-
#0x23aa =>
|
841
|
-
#0x23aa =>
|
842
|
-
0x23aa =>
|
843
|
-
#0x23ab =>
|
844
|
-
0x23ab =>
|
845
|
-
#0x23ac =>
|
846
|
-
0x23ac =>
|
847
|
-
#0x23ad =>
|
848
|
-
0x23ad =>
|
849
|
-
0x23af =>
|
850
|
-
0x2502 =>
|
851
|
-
0x25a1 =>
|
852
|
-
0x25ca =>
|
853
|
-
0x25cb =>
|
854
|
-
0x261c =>
|
855
|
-
0x261e =>
|
856
|
-
0x2660 =>
|
857
|
-
0x2663 =>
|
858
|
-
0x2665 =>
|
859
|
-
0x2666 =>
|
860
|
-
0x2713 =>
|
861
|
-
0x27e8 =>
|
862
|
-
0x27e9 =>
|
677
|
+
0x030c => '\\[ah]',
|
678
|
+
0x0327 => '\\[ac]',
|
679
|
+
0x0328 => '\\[ho]',
|
680
|
+
0x0391 => '\\[*A]',
|
681
|
+
0x0392 => '\\[*B]',
|
682
|
+
0x0393 => '\\[*G]',
|
683
|
+
0x0394 => '\\[*D]',
|
684
|
+
0x0395 => '\\[*E]',
|
685
|
+
0x0396 => '\\[*Z]',
|
686
|
+
0x0397 => '\\[*Y]',
|
687
|
+
0x0398 => '\\[*H]',
|
688
|
+
0x0399 => '\\[*I]',
|
689
|
+
0x039a => '\\[*K]',
|
690
|
+
0x039b => '\\[*L]',
|
691
|
+
0x039c => '\\[*M]',
|
692
|
+
0x039d => '\\[*N]',
|
693
|
+
0x039e => '\\[*C]',
|
694
|
+
0x039f => '\\[*O]',
|
695
|
+
0x03a0 => '\\[*P]',
|
696
|
+
0x03a1 => '\\[*R]',
|
697
|
+
0x03a3 => '\\[*S]',
|
698
|
+
0x03a4 => '\\[*T]',
|
699
|
+
0x03a5 => '\\[*U]',
|
700
|
+
0x03a6 => '\\[*F]',
|
701
|
+
0x03a7 => '\\[*X]',
|
702
|
+
0x03a8 => '\\[*Q]',
|
703
|
+
0x03a9 => '\\[*W]',
|
704
|
+
0x03b1 => '\\[*a]',
|
705
|
+
0x03b2 => '\\[*b]',
|
706
|
+
0x03b3 => '\\[*g]',
|
707
|
+
0x03b4 => '\\[*d]',
|
708
|
+
0x03b5 => '\\[*e]',
|
709
|
+
0x03b6 => '\\[*z]',
|
710
|
+
0x03b7 => '\\[*y]',
|
711
|
+
0x03b8 => '\\[*h]',
|
712
|
+
0x03b9 => '\\[*i]',
|
713
|
+
0x03ba => '\\[*k]',
|
714
|
+
0x03bb => '\\[*l]',
|
715
|
+
0x03bc => '\\[*m]',
|
716
|
+
0x03bd => '\\[*n]',
|
717
|
+
0x03be => '\\[*c]',
|
718
|
+
0x03bf => '\\[*o]',
|
719
|
+
0x03c0 => '\\[*p]',
|
720
|
+
0x03c1 => '\\[*r]',
|
721
|
+
0x03c2 => '\\[ts]',
|
722
|
+
0x03c3 => '\\[*s]',
|
723
|
+
0x03c4 => '\\[*t]',
|
724
|
+
0x03c5 => '\\[*u]',
|
725
|
+
0x03c6 => '\\[+f]',
|
726
|
+
0x03c7 => '\\[*x]',
|
727
|
+
0x03c8 => '\\[*q]',
|
728
|
+
0x03c9 => '\\[*w]',
|
729
|
+
0x03d1 => '\\[+h]',
|
730
|
+
0x03d5 => '\\[*f]',
|
731
|
+
0x03d6 => '\\[+p]',
|
732
|
+
0x03f5 => '\\[+e]',
|
733
|
+
0x2010 => '\\[hy]',
|
734
|
+
0x2013 => '\\[en]',
|
735
|
+
0x2014 => '\\[em]',
|
736
|
+
0x2018 => '\\[oq]',
|
737
|
+
0x2019 => '\\[cq]',
|
738
|
+
0x201a => '\\[bq]',
|
739
|
+
0x201c => '\\[lq]',
|
740
|
+
0x201d => '\\[rq]',
|
741
|
+
0x201e => '\\[Bq]',
|
742
|
+
0x2020 => '\\[dg]',
|
743
|
+
0x2021 => '\\[dd]',
|
744
|
+
0x2022 => '\\[bu]',
|
745
|
+
0x2030 => '\\[%0]',
|
746
|
+
0x2032 => '\\[fm]',
|
747
|
+
0x2033 => '\\[sd]',
|
748
|
+
0x2039 => '\\[fo]',
|
749
|
+
0x203a => '\\[fc]',
|
750
|
+
0x203e => '\\[rn]',
|
751
|
+
0x2044 => '\\[f/]',
|
752
|
+
#0x20ac => '\\[Eu]',
|
753
|
+
0x20ac => '\\[eu]',
|
754
|
+
0x210f => '\\[-h]',
|
755
|
+
#0x210f => '\\[hbar]',
|
756
|
+
0x2111 => '\\[Im]',
|
757
|
+
0x2118 => '\\[wp]',
|
758
|
+
0x211c => '\\[Re]',
|
759
|
+
0x2122 => '\\[tm]',
|
760
|
+
0x2135 => '\\[Ah]',
|
761
|
+
0x215b => '\\[18]',
|
762
|
+
0x215c => '\\[38]',
|
763
|
+
0x215d => '\\[58]',
|
764
|
+
0x215e => '\\[78]',
|
765
|
+
0x2190 => '\\[<-]',
|
766
|
+
0x2191 => '\\[ua]',
|
767
|
+
0x2192 => '\\[->]',
|
768
|
+
0x2193 => '\\[da]',
|
769
|
+
0x2194 => '\\[<>]',
|
770
|
+
0x2195 => '\\[va]',
|
771
|
+
0x21b5 => '\\[CR]',
|
772
|
+
0x21d0 => '\\[lA]',
|
773
|
+
0x21d1 => '\\[uA]',
|
774
|
+
0x21d2 => '\\[rA]',
|
775
|
+
0x21d3 => '\\[dA]',
|
776
|
+
0x21d4 => '\\[hA]',
|
777
|
+
0x21d5 => '\\[vA]',
|
778
|
+
0x2200 => '\\[fa]',
|
779
|
+
0x2202 => '\\[pd]',
|
780
|
+
0x2203 => '\\[te]',
|
781
|
+
0x2205 => '\\[es]',
|
782
|
+
0x2207 => '\\[gr]',
|
783
|
+
0x2208 => '\\[mo]',
|
784
|
+
0x2209 => '\\[nm]',
|
785
|
+
0x220b => '\\[st]',
|
786
|
+
0x220f => '\\[product]',
|
787
|
+
0x2210 => '\\[coproduct]',
|
788
|
+
0x2211 => '\\[sum]',
|
789
|
+
0x2212 => '\\[mi]',
|
790
|
+
0x2213 => '\\[-+]',
|
791
|
+
0x2217 => '\\[**]',
|
792
|
+
#0x221a => '\\[sqrt]',
|
793
|
+
0x221a => '\\[sr]',
|
794
|
+
0x221d => '\\[pt]',
|
795
|
+
0x221e => '\\[if]',
|
796
|
+
0x2220 => '\\[/_]',
|
797
|
+
0x2227 => '\\[AN]',
|
798
|
+
0x2228 => '\\[OR]',
|
799
|
+
0x2229 => '\\[ca]',
|
800
|
+
0x222a => '\\[cu]',
|
801
|
+
#0x222b => '\\[integral]',
|
802
|
+
0x222b => '\\[is]',
|
803
|
+
0x2234 => '\\[3d]',
|
804
|
+
#0x2234 => '\\[tf]',
|
805
|
+
0x223c => '\\[ap]',
|
806
|
+
0x2243 => '\\[|=]',
|
807
|
+
0x2245 => '\\[=~]',
|
808
|
+
#0x2248 => '\\[~=]',
|
809
|
+
0x2248 => '\\[~~]',
|
810
|
+
0x2260 => '\\[!=]',
|
811
|
+
0x2261 => '\\[==]',
|
812
|
+
0x2264 => '\\[<=]',
|
813
|
+
0x2265 => '\\[>=]',
|
814
|
+
0x226a => '\\[<<]',
|
815
|
+
0x226b => '\\[>>]',
|
816
|
+
0x2282 => '\\[sb]',
|
817
|
+
0x2283 => '\\[sp]',
|
818
|
+
0x2284 => '\\[nb]',
|
819
|
+
0x2286 => '\\[ib]',
|
820
|
+
0x2287 => '\\[ip]',
|
821
|
+
0x2295 => '\\[c+]',
|
822
|
+
0x2297 => '\\[c*]',
|
823
|
+
0x22a5 => '\\[pp]',
|
824
|
+
0x22c5 => '\\[md]',
|
825
|
+
0x2308 => '\\[lc]',
|
826
|
+
0x2309 => '\\[rc]',
|
827
|
+
0x230a => '\\[lf]',
|
828
|
+
0x230b => '\\[rf]',
|
829
|
+
0x2329 => '\\[la]',
|
830
|
+
0x232a => '\\[ra]',
|
831
|
+
0x239b => '\\[parenlefttp]',
|
832
|
+
0x239c => '\\[parenleftex]',
|
833
|
+
0x239d => '\\[parenleftbt]',
|
834
|
+
0x239e => '\\[parenrighttp]',
|
835
|
+
0x239f => '\\[parenrightex]',
|
836
|
+
0x23a0 => '\\[parenrightbt]',
|
837
|
+
0x23a1 => '\\[bracketlefttp]',
|
838
|
+
0x23a2 => '\\[bracketleftex]',
|
839
|
+
0x23a3 => '\\[bracketleftbt]',
|
840
|
+
0x23a4 => '\\[bracketrighttp]',
|
841
|
+
0x23a5 => '\\[bracketrightex]',
|
842
|
+
0x23a6 => '\\[bracketrightbt]',
|
843
|
+
#0x23a7 => '\\[bracelefttp]',
|
844
|
+
0x23a7 => '\\[lt]',
|
845
|
+
#0x23a8 => '\\[braceleftmid]',
|
846
|
+
0x23a8 => '\\[lk]',
|
847
|
+
#0x23a9 => '\\[braceleftbt]',
|
848
|
+
0x23a9 => '\\[lb]',
|
849
|
+
#0x23aa => '\\[braceex]',
|
850
|
+
#0x23aa => '\\[braceleftex]',
|
851
|
+
#0x23aa => '\\[bracerightex]',
|
852
|
+
0x23aa => '\\[bv]',
|
853
|
+
#0x23ab => '\\[bracerighttp]',
|
854
|
+
0x23ab => '\\[rt]',
|
855
|
+
#0x23ac => '\\[bracerightmid]',
|
856
|
+
0x23ac => '\\[rk]',
|
857
|
+
#0x23ad => '\\[bracerightbt]',
|
858
|
+
0x23ad => '\\[rb]',
|
859
|
+
0x23af => '\\[an]',
|
860
|
+
0x2502 => '\\[br]',
|
861
|
+
0x25a1 => '\\[sq]',
|
862
|
+
0x25ca => '\\[lz]',
|
863
|
+
0x25cb => '\\[ci]',
|
864
|
+
0x261c => '\\[lh]',
|
865
|
+
0x261e => '\\[rh]',
|
866
|
+
0x2660 => '\\[SP]',
|
867
|
+
0x2663 => '\\[CL]',
|
868
|
+
0x2665 => '\\[HE]',
|
869
|
+
0x2666 => '\\[DI]',
|
870
|
+
0x2713 => '\\[OK]',
|
871
|
+
0x27e8 => '\\[la]',
|
872
|
+
0x27e9 => '\\[ra]',
|
863
873
|
}
|
864
874
|
|
865
875
|
end
|
data/lib/md2man/version.rb
CHANGED
data/man/index.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>man/index</title>
|
7
7
|
<link rel="stylesheet" href="style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
data/man/man0/README.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>README</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
data/man/man0/VERSION.html
CHANGED
@@ -2,12 +2,24 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>VERSION</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
9
9
|
</head>
|
10
|
-
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man0">man0</a>/VERSION</span></div></div><div class="container-fluid"><h2 id="Version-2-0-
|
10
|
+
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man0">man0</a>/VERSION</span></div></div><div class="container-fluid"><h2 id="Version-2-0-2-2013-09-08">Version 2.0.2 (2013-09-08)</h2><p>Patch:</p>
|
11
|
+
<ul>
|
12
|
+
<li><p>GH-14: escape single quotes at beginning of lines</p><p>See the "CONTROL CHARACTERS" section in the <a class="md2man-xref">groff(7)</a> manual for details.</p><p>Thanks to Nick Fagerlund for reporting this bug.</p></li>
|
13
|
+
<li><p>inhibit periods at line beginnings with & escape</p></li>
|
14
|
+
<li><p>escape text line backslashes as "\e" per <a class="md2man-xref">groff(7)</a></p></li>
|
15
|
+
<li><p>better documentation for escaping in normal_text()</p></li>
|
16
|
+
<li><p>it's better to escape backslashes as [rs] than \e</p><p>See "Single-Character Escapes" section in <a class="md2man-xref">groff(7)</a>.</p></li>
|
17
|
+
</ul>
|
18
|
+
<p>Other:</p>
|
19
|
+
<ul>
|
20
|
+
<li>switch from double-quoted strings to single quotes</li>
|
21
|
+
</ul>
|
22
|
+
<h2 id="Version-2-0-1-2013-08-29">Version 2.0.1 (2013-08-29)</h2><p>Patch:</p>
|
11
23
|
<ul>
|
12
24
|
<li><p>Use a proper CDN to access Bootstrap 2.3.2 styling in HTML output.</p></li>
|
13
25
|
<li><p>Ensure that man/ directory exists for the <code>md2man:web</code> Rake task.</p></li>
|
data/man/man0/VERSION.markdown
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
## Version 2.0.2 (2013-09-08)
|
2
|
+
|
3
|
+
Patch:
|
4
|
+
|
5
|
+
* GH-14: escape single quotes at beginning of lines
|
6
|
+
|
7
|
+
See the "CONTROL CHARACTERS" section in the groff(7) manual for details.
|
8
|
+
|
9
|
+
Thanks to Nick Fagerlund for reporting this bug.
|
10
|
+
|
11
|
+
* inhibit periods at line beginnings with \& escape
|
12
|
+
|
13
|
+
* escape text line backslashes as "\e" per groff(7)
|
14
|
+
|
15
|
+
* better documentation for escaping in normal_text()
|
16
|
+
|
17
|
+
* it's better to escape backslashes as \[rs] than \e
|
18
|
+
|
19
|
+
See "Single-Character Escapes" section in groff(7).
|
20
|
+
|
21
|
+
Other:
|
22
|
+
|
23
|
+
* switch from double-quoted strings to single quotes
|
24
|
+
|
1
25
|
## Version 2.0.1 (2013-08-29)
|
2
26
|
|
3
27
|
Patch:
|
data/man/man1/md2man-html.1
CHANGED
data/man/man1/md2man-html.1.html
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>md2man-html(1) — convert md2man(5) flavored markdown(7) into HTML</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
9
9
|
</head>
|
10
|
-
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-html.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-HTML-1-2013-08-
|
10
|
+
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-html.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-HTML-1-2013-09-08-2-0-2">MD2MAN-HTML 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-html - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into HTML</p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-html</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
|
11
11
|
<em>FILE</em> into HTML and then prints the result to the standard output stream.
|
12
12
|
If <em>FILE</em> is not given, then the standard input stream is read in its place.</p><h3 id="Cross-references">Cross references</h3><p>Cross references to manual pages are emitted as HTML hyperlinks that have
|
13
13
|
<code>class="md2man-xref"</code> and <code>href="../man$SECTION/$PAGE.$SECTION.html"</code>
|
data/man/man1/md2man-rake.1
CHANGED
data/man/man1/md2man-rake.1.html
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>md2man-rake(1) — run rake(1) tasks from md2man(1)</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
9
9
|
</head>
|
10
|
-
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-rake.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-RAKE-1-2013-08-
|
10
|
+
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-rake.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-RAKE-1-2013-09-08-2-0-2">MD2MAN-RAKE 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-rake - run <a class="md2man-xref">rake(1)</a> tasks from <a class="md2man-xref">md2man(1)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-rake</code> [<em>OPTION</em>]... [<em>TASK</em>]...</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program lets you run <a class="md2man-xref">rake(1)</a> tasks provided by <a class="md2man-xref">md2man(1)</a> without having
|
11
11
|
to create a special file named <code>Rakefile</code> that contains the following snippet:</p>
|
12
12
|
<pre><code>require 'md2man/rakefile'
|
13
13
|
</code></pre>
|
data/man/man1/md2man-roff.1
CHANGED
data/man/man1/md2man-roff.1.html
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>md2man-roff(1) — convert md2man(5) flavored markdown(7) into roff(7)</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
9
9
|
</head>
|
10
|
-
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-roff.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-ROFF-1-2013-08-
|
10
|
+
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man1">man1</a>/md2man-roff.1</span></div></div><div class="container-fluid"><h1 id="MD2MAN-ROFF-1-2013-09-08-2-0-2">MD2MAN-ROFF 1 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man-roff - convert <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> into <a class="md2man-xref">roff(7)</a></p><h2 id="SYNOPSIS">SYNOPSIS</h2><p><code>md2man-roff</code> [<em>OPTION</em>]... [<em>FILE</em>]</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p>This program converts <a class="md2man-xref" href="../man5/md2man.5.html">md2man(5)</a> flavored <a class="md2man-xref">markdown(7)</a> input from the given
|
11
11
|
<em>FILE</em> into <a class="md2man-xref">roff(7)</a> and then prints the result to the standard output stream.
|
12
12
|
If <em>FILE</em> is not given, then the standard input stream is read in its place.</p><h3 id="Limitations">Limitations</h3><p>This program does not convert the following <a href="https://github.com/vmg/redcarpet">Redcarpet</a> nodes into <a class="md2man-xref">roff(7)</a>:</p>
|
13
13
|
<ul>
|
data/man/man5/md2man.5
CHANGED
data/man/man5/md2man.5.html
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<meta name="generator" content="md2man 2.0.
|
5
|
+
<meta name="generator" content="md2man 2.0.2 https://github.com/sunaku/md2man" />
|
6
6
|
<title>md2man(5) — manual page flavoring for the markdown(7) file format</title>
|
7
7
|
<link rel="stylesheet" href="../style.css"/>
|
8
8
|
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
9
9
|
</head>
|
10
|
-
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man5">man5</a>/md2man.5</span></div></div><div class="container-fluid"><h1 id="MD2MAN-5-2013-08-
|
10
|
+
<body><div class="navbar"><div class="navbar-inner"><span class="brand"><a href="../index.html#man5">man5</a>/md2man.5</span></div></div><div class="container-fluid"><h1 id="MD2MAN-5-2013-09-08-2-0-2">MD2MAN 5 2013-09-08 2.0.2</h1><h2 id="NAME">NAME</h2><p>md2man - manual page flavoring for the <a class="md2man-xref">markdown(7)</a> file format</p><h2 id="DESCRIPTION">DESCRIPTION</h2><p><a href="https://github.com/sunaku/md2man">md2man</a> makes the <a class="md2man-xref">markdown(7)</a> file format friendly for writing UNIX manual
|
11
11
|
pages by extending its syntax, semantics, and assumed processing extensions.</p><h3 id="Syntax">Syntax</h3><p>md2man extends <a class="md2man-xref">markdown(7)</a> syntax by defining three kinds of paragraphs.</p>
|
12
12
|
<pre><code>This is a
|
13
13
|
normal
|
data/man/man5/md2man.5.markdown
CHANGED
data/test/md2man/roff_test.rb
CHANGED
@@ -142,6 +142,23 @@ describe 'roff engine' do
|
|
142
142
|
| paragraph.
|
143
143
|
OUTPUT
|
144
144
|
end
|
145
|
+
|
146
|
+
it 'escapes backslashes in normal text' do
|
147
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
148
|
+
|c:\\drive
|
149
|
+
INPUT
|
150
|
+
|.PP
|
151
|
+
|c:\\[rs]drive
|
152
|
+
OUTPUT
|
153
|
+
|
154
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
155
|
+
|c:\\drive\\walk\\\\\\car
|
156
|
+
INPUT
|
157
|
+
|.PP
|
158
|
+
|c:\\[rs]drive\\[rs]walk\\[rs]\\[rs]car
|
159
|
+
OUTPUT
|
160
|
+
end
|
161
|
+
|
145
162
|
it 'escapes hyphens in normal text' do
|
146
163
|
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
147
164
|
|pre-process
|
@@ -158,6 +175,66 @@ describe 'roff engine' do
|
|
158
175
|
OUTPUT
|
159
176
|
end
|
160
177
|
|
178
|
+
it 'inhibits periods at the beginning of lines in normal text' do
|
179
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
180
|
+
|.
|
181
|
+
INPUT
|
182
|
+
|.PP
|
183
|
+
|\\&.
|
184
|
+
OUTPUT
|
185
|
+
|
186
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
187
|
+
|..
|
188
|
+
INPUT
|
189
|
+
|.PP
|
190
|
+
|\\&..
|
191
|
+
OUTPUT
|
192
|
+
|
193
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
194
|
+
|...
|
195
|
+
INPUT
|
196
|
+
|.PP
|
197
|
+
|\\&...
|
198
|
+
OUTPUT
|
199
|
+
|
200
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
201
|
+
|.hello. world qu.o.tes
|
202
|
+
INPUT
|
203
|
+
|.PP
|
204
|
+
|\\&.hello. world qu.o.tes
|
205
|
+
OUTPUT
|
206
|
+
end
|
207
|
+
|
208
|
+
it 'inhibits single quotes at the beginning of lines in normal text' do
|
209
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
210
|
+
|'
|
211
|
+
INPUT
|
212
|
+
|.PP
|
213
|
+
|\\&'
|
214
|
+
OUTPUT
|
215
|
+
|
216
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
217
|
+
|''
|
218
|
+
INPUT
|
219
|
+
|.PP
|
220
|
+
|\\&''
|
221
|
+
OUTPUT
|
222
|
+
|
223
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
224
|
+
|'''
|
225
|
+
INPUT
|
226
|
+
|.PP
|
227
|
+
|\\&'''
|
228
|
+
OUTPUT
|
229
|
+
|
230
|
+
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
231
|
+
|'hello' world qu'o'tes
|
232
|
+
INPUT
|
233
|
+
|.PP
|
234
|
+
|\\&'hello' world qu'o'tes
|
235
|
+
OUTPUT
|
236
|
+
end
|
237
|
+
|
161
238
|
it 'renders emphasis' do
|
162
239
|
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
163
240
|
|just *some paragraph*
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: md2man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suraj N. Kurapati
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08
|
11
|
+
date: 2013-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binman
|