I encountered this as a result of using share-note. To my surprise, when using the plugin, my entire frontmatter section was reformatted and comments within it were removed without warning. I reported this as a bug there (#72), and the developer informed me that this is a problem with FileManager.processFrontMatter().
While the formatting change is annoying, I can accept that. Destroying my data is not acceptable.