A complicated figure caption includes an <ext-link> tag, and the . in the URL makes it difficult to determine the figure title from the content. This code should make extract_label_title_content() to be less error prone, though the quality of the output will depend on how complicated the input content is.
Another bug noticed while testing is to be more specific when replacing fig <ext-link> tag's xlink:href tag attributes with actual file names, because it should not replace the values in an <ext-link> tag which is linking to a URL.
Bumping the library version number to 0.4.0 due to the new enhancements.
Re issue https://github.com/elifesciences/issues/issues/6917
A complicated figure caption includes an
<ext-link>
tag, and the.
in the URL makes it difficult to determine the figure title from the content. This code should makeextract_label_title_content()
to be less error prone, though the quality of the output will depend on how complicated the input content is.Another bug noticed while testing is to be more specific when replacing fig
<ext-link>
tag'sxlink:href
tag attributes with actual file names, because it should not replace the values in an<ext-link>
tag which is linking to a URL.Bumping the library version number to
0.4.0
due to the new enhancements.