Re: How to delete first underscore in section ID?
Posted by
mojavelinux on
Feb 29, 2020; 9:30pm
URL: https://discuss.asciidoctor.org/How-to-delete-first-underscore-in-section-ID-tp7706p7708.html
Agreed. It can be done, but it's a "use at your own risk" sort of thing. Generally, HTML doesn't care what characters are used in an ID, but other output formats do.
-Dan
On Sat, Feb 29, 2020 at 11:22 AM David Jencks [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
See 16.2. Auto-generated IDs
In my experience, people who ignore the warning and set the idprefix to empty generally thereby introduce several invalid ids into their document.
David Jencks
On Feb 29, 2020, at 10:02 AM, DrAscii [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi guys,
== This Is A Test
produces
<h2 id="_this_is_a_test">This Is A Test<h2>
How can I get rid of the first underscore in the section ID?
Thanks!
Best regards
DrAscii
--