tpope / pickler

PIvotal traCKer Liaison to cucumbER
MIT License
299 stars 23 forks source link

Comments out lines in ruby after a markdown hr #26

Closed jondkinney closed 2 months ago

jondkinney commented 7 years ago

hr being a horizontal rule. Specifically a three dash horizontal rule.

Looks for --- and slices the array on that to "top half" and "bottom half". For the bottom half, either add comments or remove them when pulling or pushing respectively.

I know this isn't the most elegant thing, but it's working for now. I'm going to test it a bit and might clean things up a bit. Mostly pushing to reference the gem from my branch, but wanted to see if anyone else is interested in this so throwing up this PR.

Some examples of why I needed this (please forgive the user stories themselves, we're working on bringing that process into our workflow across the broader team at the moment and have some things to tighten up on that front).

The MD preview version

image

Editing retains the indentation

image