Why when converting this MarkDown code:


This is **bold text**, this is regular text. This is **bold text** again.


I'm getting this OpenDocument code:

<text:p text:style-name="Text_20_body">
  This is
 
<text:span text:style-name="T1">
    bold
 
</text:span>
<text:span text:style-name="T2">
</text:span>
<text:span text:style-name="T3">
  text
</text:span>
, this is regular text. This is
<text:span text:style-name="T4">
  bold
</text:span>
<text:span text:style-name="T5">
</text:span>
<text:span text:style-name="T6">
  text
</text:span>
  again.
</text:p>


This is the python code I'm using to convert it:
pandoc_args = []

pandoc_args
.append("--reference-odt")
pandoc_args
.append("style_reference_file.odt")

opendocument_code
= pypandoc.convert(markdown_code, 'opendocument', format='markdown_github', extra_args=pandoc_args)

This is the result:


I understand that I have to define styles, that's not the problem, I'll control it in the future. But this is my question: why, for the same style, I get different style-names?

Thanks again!

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3681192c-529b-47f0-afcd-393ecf49508c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.