Conversation
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
bwplotka
left a comment
There was a problem hiding this comment.
Nice LGTM, just one idea: Wonder if we can global default popHeader on root file? 🤔
|
Sure! Will try to implement this! |
|
Now, |
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
4bd4291 to
e6836da
Compare
pkg/transform/testdata/mdox1.yaml
Outdated
| transformations: | ||
| - glob: "README.md" | ||
| path: _index.md | ||
| popHeader: true |
There was a problem hiding this comment.
If popHeader is true on root, why we do this? 🤔
There was a problem hiding this comment.
Sorry, forgot to remove!
There was a problem hiding this comment.
It's still there on all examples 🤔
|
Merging, LGTM thanks, but examples are still not perfect 🙈 |
|
I've missed some. Will raise PR to fix them! 🙂 |
This PR changes
transformtranformation config to preserve markdown headers by default while transforming as discussed in 1:1.popHeaderoption may be added to enable removing header.Note: Could not find a better explicit way of enabling remove header other than bool option in config (as was mentioned in 1:1). Would a flag instead be preferred?