ropensci / tinkr

Convert (R)Markdown files to XML, edit them, write them back as (R)Markdown
https://docs.ropensci.org/tinkr
GNU General Public License v3.0
57 stars 3 forks source link

Should alternative text be parsed to something special #100

Open maelle opened 11 months ago

maelle commented 11 months ago
![rOpenSci Localizacion Process](images/localization_concept_map.png){fig-alt="Localization process cicle: we create a Pull Request with the first automatic translation, that translation get two reviews and then the editor do a final revision and merge the changes.  Reviewers and editors updates translations guidelines that define a glossary and agreements around language use."}

becomes

<document xmlns="http://commonmark.org/xml/1.0">
  <paragraph>
    <image destination="images/localization_concept_map.png" title="">
      <text xml:space="preserve">rOpenSci Localizacion Process</text>
    </image>
    <text xml:space="preserve">{fig-alt="Localization process cicle: we create a Pull Request with the first automatic translation, that translation get two reviews and then the editor do a final revision and merge the changes.  Reviewers and editors updates translations guidelines that define a glossary and agreements around language use."}</text>
  </paragraph>
</document>
maelle commented 11 months ago

https://quarto.org/docs/authoring/figures.html#alt-text