Maybe add some markdown-manipulation tasks
I made a few tasks for my own use. Maybe you would like to package them together with the others. Before I clean them up I should ask you what your thinking is for adding more tasks. Would you want to add these tasks? Should they be changed in a significant way before being added?
PandocMDtoHTML
This task uses Pandoc to make a simple conversion from markdown to HTML. I use this to package a changelog with the game in a format players are more likely to understand.
It requires Pandoc to be installed. Perhaps a better implementation would be to have a wrapper for more of Pandoc's functionality instead of just this one conversion. It's also questionable if this needs to be its own task since it can be implemented as a one-line command: pandoc -o target.html source.md. But having this task is slightly more convenient.
TrimMarkdown
This task trims a markdown file to include only the specified header. I use this in an automation pipeline to push only the most recent changelog information onto a Releases page.
Since this uses a script it can't be used by adding to the Tasks folder of a prebuilt Project Builder executable. I think a better implementation would be to specify the starting and ending line of the trimmed file and let it work on all text files. Then to include only everything under the first ## header of a markdown file I could set the options:
- Start:
## - Include:
true - End:
## - Include:
false
This is the first time I'm hearing about Pandadoc. I'm not sure how useful is that in general, I think a task that relies on obscure third-party program is out of scope for Project Builder.
The other task looks too specific. I can rework script tasks to allow implementing it as a custom task if it's not possible.
That said, it would be nice to get input from more people; it would make it easier to evaluate whether a task should be included (currently the tasks are based on what I needed for my projects, but that might be specific too). It's not really possible though, given how Project Builder isn't very popular.
I can rework script tasks to allow implementing it as a custom task if it's not possible.
Done in 654aa61fc0772baa4822574e11e1ffac632116d6 It's now easier to add custom scripts.
Done in 654aa61 It's now easier to add custom scripts.
Thanks! I'll try packaging them in some custom tasks repository. I don't mind them not going into the main package.