Child Page Reference in toMarkdownString()
with separateChildPage = true
#106
Labels
v4-candidate
This issue / PR can be better handled in v4
Hey!
Just started using this library and loving it so far!
I am running into an issue and was wondering if this was intentional or not.
When converting a Page with Child Pages with toMarkdownString() (config option
separateChildPage = true
), there is no markup left in the parent page content indicating that a the child page was there.From the example:
The current output is:
{
"parent": "\nThis is parent page content \n\n\nback to the parent page\n\n [...rest of the output...],
"Level 1 page: ": "\nThis is a level 1 page [..rest of the output...]
}
However, in my situation it would ideal if the output look like this:
{
"parent": "\nThis is parent page content \n\n**[Level 1 page](/level-1-page)**:\nback to the parent page\n\n [...rest of the output...],
"Level 1 page: ": "\nThis is a level 1 page [..rest of the output...]
}
The markup it self doesn't have to exacly this but the ability to add a reference to the child page would be amazing.
Is this intentional or a missing feature?
Implementing this would (I believe) look like this: https://gist.github.com/damourChris/f3de3c46378a8e3ab169ea4055fb2c22
Thank for you work!
The text was updated successfully, but these errors were encountered: