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

πŸ‘©β€πŸ’» Add Program 1 vs Code 1 in typst #1599

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

rowanc1
Copy link
Member

@rowanc1 rowanc1 commented Oct 22, 2024

No description provided.

Copy link

changeset-bot bot commented Oct 22, 2024

πŸ¦‹ Changeset detected

Latest commit: e508f77

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
myst-to-typst Patch
myst-cli Patch
mystmd Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -41,6 +41,12 @@ function renderFigureChild(node: GenericNode, state: ITypstSerializer) {
if (useBrackets) state.write('\n]');
}

function getDefaultCaptionSupplement(kind: CaptionKind | string) {
if (kind === 'code') kind = 'program';
const domain = kind.includes(':') ? kind.split(':')[1] : kind;
Copy link
Collaborator

Choose a reason for hiding this comment

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

πŸ‘ Nice little extra improvement.

@rowanc1 rowanc1 merged commit 7547b1d into main Oct 22, 2024
7 checks passed
@rowanc1 rowanc1 deleted the typst/code branch October 22, 2024 16:30
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.

2 participants