isinstance(txtnode.parent, nodes.field_name) or \
isinstance(txtnode.parent, nodes.Bibliographic) or \
(isinstance(txtnode.parent, nodes.reference) and
- (txtnode.astext() == txtnode.parent['refuri'] or 'mailto:' + txtnode.astext() == txtnode.parent['refuri'])):
+ (txtnode.astext() == txtnode.parent.get('refuri', '') or 'mailto:' + txtnode.astext() == txtnode.parent.get('refuri', ''))):
return False
# From fields include only the ones that are in FORMATTED_FIELDS
ver­ba­tim stuff shouldn’t: <span class="raw-html">hello "this" is not hyphenated</span>. Nei­ther
ver­ba­tim blocks:</p>
"quote" hyphenation<p lang="cs">Od­sta­vec v češ­ti­ně. „Uvo­zov­ky“ fun­gu­jí ji­nak a dě­le­ní slov jakbys­met.</p>
+<section id="links">
+<h2>Links</h2>
<p>Links with ti­tles that are URLs (or e-mail ad­dress­es) shouldn’t be hy­phen­at­ed
ei­ther:</p>
<ul>
<li><a href="mailto:info@magnum.graphics">info@magnum.graphics</a></li>
<li><a href="https://magnum.graphics">https://magnum.graphics</a></li>
+<li><a href="#links">Links</a> with­out re­fu­ri should not give an er­ror</li>
</ul>
+</section>
<!-- /content -->
</div>
</div>
Odstavec v češtině. "Uvozovky" fungují jinak a dělení slov jakbysmet.
+Links
+=====
+
Links with titles that are URLs (or e-mail addresses) shouldn't be hyphenated
either:
- info@magnum.graphics
- https://magnum.graphics
+- `Links`_ without refuri should not give an error