adoc-mode icon indicating copy to clipboard operation
adoc-mode copied to clipboard

Fix #52 adoc-nobreak-p checks adoc-nobreak text property

Open TobiasZawada opened this issue 1 year ago • 3 comments

Fix #52 adoc-nobreak-p checks adoc-nobreak text property

TobiasZawada avatar Feb 10 '24 03:02 TobiasZawada

Same thing like Flyspell-Overlays (see #50).

xref:LINK[LINK TEXT] is open for discussion. Asciidoctor actually accepts linebreaks in LINK TEXT but adoc-mode does not font-lock it right, since it is not multiline. (Multiline font lock is quite tricky and needs thorough work. (E.g., two-line titles also do not work very well.)

The current solution is to not let auto-fill-mode introduce artificial linebreaks into LINK TEXT. But, that is a hack.

TobiasZawada avatar Feb 10 '24 03:02 TobiasZawada

It is a pity, but I have the impression that we need to remove the marking of two-line headers. The adoc-nobreak property spills out on the text of the following paragraph. (To be investigated.)

TobiasZawada avatar Feb 10 '24 03:02 TobiasZawada

It is a pity, but I have the impression that we need to remove the marking of two-line headers.

That'd be fine by me, but we should mention this somewhere and encourage people to avoid using those.

bbatsov avatar Feb 18 '24 10:02 bbatsov