Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shrink public API surface in markup parsers #475

Merged
merged 2 commits into from
Jul 15, 2023
Merged

shrink public API surface in markup parsers #475

merged 2 commits into from
Jul 15, 2023

Conversation

jenshalm
Copy link
Contributor

This is the final PR for #452.

It covers the packages laika.markdown (Markdown parser) and laika.rst (reStructuredText parser) and all their sub-packages.

Both parsers are completely removed from public API, as it is unlikely that user code will need to reference the internals directly. Only two aspects are worth mentioning explicitly:

The GitHubFlavor extension which needs to be enabled explicitly by user code remains public for this purpose. It will move to a different package in a later milestone (e.g. laika.bundle which could host all built-in extensions).

And secondly, removing the reStructuredText parser from public API means that this also includes the APIs for builing "rst-native" directives, which have a different syntax than Laika's own directives. These APIs have never been documented in the manual and it is generally recommended that developers use the more versatile Laika syntax which can be used for any markup format. The implementation must be kept simply to support the existing directives as defined in the rst spec.

@jenshalm jenshalm merged commit 2711de0 into main Jul 15, 2023
21 checks passed
@jenshalm jenshalm deleted the api/markup branch July 15, 2023 17:50
jenshalm added a commit that referenced this pull request Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant