Skip to content

Add module internal to exports - #195

Open
habetuz wants to merge 2 commits into
typst-community:masterfrom
habetuz:master
Open

Add module internal to exports#195
habetuz wants to merge 2 commits into
typst-community:masterfrom
habetuz:master

Conversation

@habetuz

@habetuz habetuz commented Jun 12, 2026

Copy link
Copy Markdown

This PR adds a module internal to the list of exports. It contains all non-private functions (no trailing _) that are not exported in the top level module.

This gives packages users to style glossarium more easily, because, for example, default implementations from glossarium can still be used.

closes #193

@habetuz

habetuz commented Jun 12, 2026

Copy link
Copy Markdown
Author

I also added two entries to the .gitignore I thing should be included. Let me know if I should revert this.

@quachpas

Copy link
Copy Markdown
Collaborator

@habetuz thanks for the patch! I'm working on the themes atm and I believe I could release 0.6.0 with the themes soonish.

If that's not the case, I'll merge this. Sorry for the annoyance.

@habetuz

habetuz commented Jun 14, 2026

Copy link
Copy Markdown
Author

Sure, as you can read in my issue, I found a different workaround for my specific issue. So no need to hurry!

@amandeavor amandeavor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the current head (de8f8eb) locally: all 43 Tytanic tests pass and the advanced documentation compiles with Typst 0.13.1. Importing the filtered module through the package entrypoint also compiles successfully.

Two small follow-ups would strengthen this before merge:

  • default-group-break appears twice in the internal import list.
  • A compile-only public-API test importing internal from glossarium.typ would protect these exports from silently disappearing later, since the existing tests import themes/default.typ directly.

I opened #202 before noticing this existing PR. I am closing mine to avoid splitting the same work; its tests/public-api/test.typ can be adapted to cover the internal module if useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose default-print-... and other functions.

3 participants