aboutsummaryrefslogtreecommitdiff
path: root/test/test-pandoc.hs
diff options
context:
space:
mode:
authorEvan Silberman <[email protected]>2024-12-19 18:43:24 -0800
committerJohn MacFarlane <[email protected]>2024-12-27 11:10:48 -0800
commitc4716d41c574fc514146e546790e6c69da7f7e71 (patch)
tree812b39a15d284ef82e427aab1223eb26e3a6daca /test/test-pandoc.hs
parentaf2b276afeaae3faa4c4a9759d1530e2f1da6871 (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.hs2
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
]
]