Closed zkamvar closed 9 months ago
The callout blocks with markup in their titles have duplicated text:
For example, the title ### callout (`callout`) appears like this:
### callout (`callout`)
The source of the error is from
https://github.com/carpentries/sandpaper/blob/50bfd5a04bcbaef5e24f06fd1c00ea50af4e5262/R/utils-xml.R#L198-L201
What we need to do is to select /text() before we pass the elements to xml_text_translate()
/text()
xml_text_translate()
The callout blocks with markup in their titles have duplicated text:
For example, the title
### callout (`callout`)
appears like this:The source of the error is from
https://github.com/carpentries/sandpaper/blob/50bfd5a04bcbaef5e24f06fd1c00ea50af4e5262/R/utils-xml.R#L198-L201
What we need to do is to select
/text()
before we pass the elements toxml_text_translate()