MarkdownSection¶
Maestro\Markdown\Task\MarkdownSectionTask
Replace a section in a markdown document corresponding to the given header.
Parameters¶
path Path to existing or target markdown file -
stringheader Header to match -
stringcontent Content to replace section with -
stringprepend Prepend a new section instead of appending it. -
bool
Description¶
new MarkdownSectionTask(
path: 'README.md',
header: '## Contributing',
content: "## Contributing\n\nHello There"
);
If the document does not exist, it will be created.