Hi Ian, great app, very useful also as a troubleshooting/cleaning tool! I identified malformed text formatting across a large family group that shared a single copy-pasted source citation. Bravo! With gentle reminders from the comments here I reformatted all my Research Notes headers (had them after Sources, and they were bunched up within Sources), and again bravo, now they're grouped together in your output.
I found some stray markdown in the text (I work in Obsidian to centralise all my family bios and sources, then deploy to all the online services I use)...will be more careful markdown->wikimarkup.
I noticed text bolding in Sources retains the three single-apostrophe markup and doesn't bold. (nb: bolded text shows as intended in the Bio and Research Notes sections). I presume this is on purpose as sources are full of single and double quote marks, wild URL syntax, etc. I bolded inline source titles to enhance source list readability for myself, not recommended style, and I'm resigned to remove the bolding (eg [[Johnston-20570]].
Thanks again, all the best!