Closed abelsromero closed 1 year ago
@mojavelinux I am documenting on the migration guide how to use parse_header_only
option, but I suspect this is one of those internal things that users should not use? Is that the case?
Rebased from main, ready for review :tada:
Thanks!
Kind of change
Description
What is the goal of this pull request?
org.asciidoctor.Asciidoctor
interface to streamline API. Just methods usingorg.asciidoctor.Options
remain now.readDocumentHeader
methods andorg.asciidoctor.ast.DocumentHeader
class:warning: IMPORTANT: This is a branch from the branch in PR https://github.com/asciidoctor/asciidoctorj/pull/1200, this is to be merged later, I am marking as draft for now as a reminder. No rush, there's plenty of time.
How does it achieve that?
Simply remove the methods and refactor the required code. Special mention to
WhenDocumentHeaderIsRequired
test, we could remove it, but I just reimplemented with the new API to ensure users can still obtain the same information.Are there any alternative ways to implement this? No, it's only remove, no changes in the methods lefts.
Are there any implications of this pull request? Anything a user must know?
It's breaking for v3.0.0 but we add a migration guide to help.
Issue
Fixes #1201
Release notes
Please add a corresponding entry to the file CHANGELOG.adoc