Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It started out when I introduced more and more fold markers to the DebOps project. I used `(((` as marker because it was not highlighted by my editor as being a Jinja2 control sequence. The fold marker as turned out to be not-optimal because it also appears in complex Jinja2 conditions quite often. So @drybjed and me settled on `[[[`. The problem was, however, that we always needed to introduce additional redundancy to the files. Example: ```YAML --- ``` @drybjed and I discussed this and agreed that the best thing would be to patch up `yaml2rst` to filter out the fold marker which would allow it to be directly appended after headings for instance. Example: ```YAML --- ``` With this patch, this input gets converted into: ```reStructuredText .. vim: foldmarker=[[[,]]]:foldmethod=marker Default variables ================= .. contents:: Sections :local: ---------------------- Role configuration ---------------------- ``` Can we make this the default behavior or should it be made optional? I limited the regex to only match a very defined set of occurrences.
- Loading branch information