String values encode as JSON strings coerced to valid UTF-8, replacing invalid bytes with the Unicode replacement rune. So that the JSON will be safe to embed inside HTML tags, the string is encoded using HTMLEscape, which replaces “<”, “>”, “&”, U+2028, and U+2029 are escaped to “\u003c”,“\u003e”, “\u0026”, “\u2028”, and “\u2029”. This replacement can be disabled when using an Encoder, by calling SetEscapeHTML(false).
AFAIK, the only workaround for this is using replace function to modify your JSON string
Well then, how about doing Markdown in your frontmatter and THEN using markdownify? I am using that procedure and it is definitely working on frontmatter values. If not - show more code, you might have a deeper issue.
And there would be no difference in the handling of content in data-JSON-files and frontmatter-json. It should render the same if the JSON is written the same way.
Here is an example of my front matter (unfortunately is in Slovenian language)
[[faq.section]]
question = "Kdo je avtor AEQ metode?"
answer = """
**AEQ metodo je razvil Aleš Ernst**, z namenom, da svoja osebna odkritja iz vodenja terapij klinične somatike združi pod ime AEQ.
Podrobnejšo zgodbo o avtorju pa najdete na uradni spletni strani AEQ metode ([za ogled klikni tukaj](https://aeq.si/ustanovitelj-metode/)).
"""
If you have any working example at your hand, you can send it to me and I can try that as well. But you are already giving me hope. If markdownify works for you in the partials, then Im more motivated to solve this one.
Woow great. This looks cleaner than using replace.
Im not skilled enough to know if this approach has any shortcomings. But for now im very satisfied. @pamubay you’re the king. I hope this will help other people that are implementing FAQ sheme.
In the mean time I also noticed that multiline answers are causing an backslashes as well. Shema validator are saying that JSON is not valid. I will try to replace it, but I dont know how to do that yet.
Ok. With all the help I finally found a working solution. Here is the code for anyone who wants to use markdown inside JSON schema (such as FAQ structured data)