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 /pandoc.cabal | |
| 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 'pandoc.cabal')
| -rw-r--r-- | pandoc.cabal | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 7754b5902..9bd47a9f9 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -424,6 +424,7 @@ extra-source-files: test/odt/odt/*.odt test/odt/markdown/*.md test/odt/native/*.native + test/pod-reader.pod source-repository head type: git location: git://github.com/jgm/pandoc.git @@ -604,6 +605,7 @@ library Text.Pandoc.Readers.RTF, Text.Pandoc.Readers.Typst, Text.Pandoc.Readers.Djot, + Text.Pandoc.Readers.Pod, Text.Pandoc.Writers, Text.Pandoc.Writers.Native, Text.Pandoc.Writers.DocBook, @@ -837,6 +839,7 @@ test-suite test-pandoc Tests.Readers.Man Tests.Readers.Mdoc Tests.Readers.FB2 + Tests.Readers.Pod Tests.Readers.DokuWiki Tests.Writers.Native Tests.Writers.ConTeXt |
