diff options
| author | Evan Silberman <[email protected]> | 2024-12-19 18:43:24 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-12-27 11:10:48 -0800 |
| commit | c4716d41c574fc514146e546790e6c69da7f7e71 (patch) | |
| tree | 812b39a15d284ef82e427aab1223eb26e3a6daca /test/test-pandoc.hs | |
| parent | af2b276afeaae3faa4c4a9759d1530e2f1da6871 (diff) | |
Add Pod reader
Pod ("Plain old documentation") is a markup languaged used principally
to document Perl modules and programs. Since it was originally meant to
be translated pretty directly to man, the semantics are fairly simple.
This Pod reader was developed with reference to the canonical user and
implementer documentation of Pod: https://perldoc.perl.org/perlpod and
https://perldoc.perl.org/perlpodspec.
There are 1490 .pod, .pl, and .pm in the Perl 5.34 distribution found in
/System/Library/Perl on my mac. Of those, this reader dies with a parse
error on 7 of them. All of them seem to be cases where pod commands are
found within a non-colon-prefixed =begin/=end. perlpodspec says I may
treat this as an error.
[API change] adds readPod
Diffstat (limited to 'test/test-pandoc.hs')
| -rw-r--r-- | test/test-pandoc.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-pandoc.hs b/test/test-pandoc.hs index 6d749b845..d310b932f 100644 --- a/test/test-pandoc.hs +++ b/test/test-pandoc.hs @@ -30,6 +30,7 @@ import qualified Tests.Readers.RTF import qualified Tests.Readers.Txt2Tags import qualified Tests.Readers.Man import qualified Tests.Readers.Mdoc +import qualified Tests.Readers.Pod import qualified Tests.Shared import qualified Tests.Writers.AsciiDoc import qualified Tests.Writers.ConTeXt @@ -101,6 +102,7 @@ tests pandocPath = testGroup "pandoc tests" , testGroup "Mdoc" Tests.Readers.Mdoc.tests , testGroup "FB2" Tests.Readers.FB2.tests , testGroup "DokuWiki" Tests.Readers.DokuWiki.tests + , testGroup "Pod" Tests.Readers.Pod.tests ] ] |
