# Is there a way to get pldoc to process a raw markdown file?

**URL:** <https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123>\
**Category:** Help!\
**Created:** [July 1, 2021, 12:26am UTC](https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123 "2021-07-01T00:26:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericzinda](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@ericzinda](https://swi-prolog.discourse.group/u/ericzinda)\
**Post date:** [July 1, 2021, 12:26am UTC](https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123/1 "2021-07-01T00:26:14Z")

</div>

I want to pull some overview material out of my \*.pl source file and put into a markdown file. It is in the right format for pldoc and doc\_save/2 successfully generates it when it is in the \*.pl file.

Is there a way to point doc\_save/2 at a pure markdown file and do the same thing?

---

<div class="post-metadata">

**Author:** ![joeblog](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/joeblog/32/122_2.png) [@joeblog](https://swi-prolog.discourse.group/u/joeblog)\
**Post date:** [July 1, 2021, 6:18am UTC](https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123/2 "2021-07-01T06:18:59Z")

</div>

PLDoc looks for a file called README.md to use as the overview page. I’ve made notes of what I’ve learned using PLDoc and PLUnit at [Prolog - Frontier Software](https://www.frontiersoftware.co.za/meta-documentation/prolog/)

---

<div class="post-metadata">

**Author:** ![ericzinda](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@ericzinda](https://swi-prolog.discourse.group/u/ericzinda)\
**Post date:** [July 1, 2021, 3:30pm UTC](https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123/3 "2021-07-01T15:30:58Z")

</div>

Very helpful, thanks!

I was hoping for a way to do an arbitrarily named .md file since there are other files in the directory and readme.md will look like it is for the whole directory (which it isn’t). Sounds like there isn’t a way to do that?

---

<div class="post-metadata">

**Author:** ![joeblog](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/joeblog/32/122_2.png) [@joeblog](https://swi-prolog.discourse.group/u/joeblog)\
**Post date:** [July 1, 2021, 5:31pm UTC](https://swi-prolog.discourse.group/t/is-there-a-way-to-get-pldoc-to-process-a-raw-markdown-file/4123/4 "2021-07-01T17:31:08Z")

</div>

The documentation at [SWI-Prolog -- Manual](https://www.swi-prolog.org/pldoc/man?section=dirindex) indicates if a README.{txt,md,…} exists, it is put at the top before a table of loaded \*.pl files, and then if there is a TODO.{txt,md,…}, it goes at the bottom.

Those filenames are hardwired as far as I understand, but can’t claim to be an expert.
