Open osheari1 opened 1 month ago
Sorry for the delay in getting to this.
It looks like it's working correctly then? By default gptel will leave all text inside src blocks untransformed when converting from Markdown to Org. Messing with this introduces all kinds of edge cases. The best way to handle this is to get the LLM to produce correctly formatted blocks, as you do.
With org-mode source blocks in org-mode buffers, the content of the source block must be escaped, otherwise it breaks parsing. For example
However if you update the prompt to ensure all source blocks escape headers, then it won't break the parsing.