iamjackg / md2cf

Convert and upload Markdown documents to Confluence
MIT License
91 stars 49 forks source link

Added flag --title-from-filename to always use the filename as the page title #115

Open devzeb opened 10 months ago

devzeb commented 10 months ago

I am currently adopting md2cf in my ci workflows. The workflow I am mainly going to use is uploading multiple files inside of a folder recursively.

I found that the current way of determining the page title produces inconsistent results, as some of my markdown files have a top-level header and some do not. To make this more consistent, I would like to always use the filename as the page title.

Therefore I propose to add a new option to the md2cf command, which allows to explicitly tell the application to always use the filename as the page title, regardless of the file content.