asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Don't hyphenate autolink when hyphenation is enabled #2521

Closed mojavelinux closed 4 months ago

mojavelinux commented 4 months ago

If hyphenation is enabled using the hyphens attribute, the URL of an autolink should not be hyphenated. This scenario can be detected by looking for the bare class on the <a> tag and skipping over its contents (the URL).