Skip to content

Parse the CSL 1.1 cs:intext element - #53

Open
andrader wants to merge 1 commit into
typst:mainfrom
andrader:intext
Open

andrader wants to merge 1 commit into
typst:mainfrom
andrader:intext

Conversation

@andrader

Copy link
Copy Markdown

Parses the CSL 1.1 cs:intext element (schema PR #193).

  • Adds intext: Option<Citation> to IndependentStyle. The schema gives cs:intext the same content model as cs:citation (options, cs:sort, cs:layout), so the existing type is reused.
  • Deserializes and serializes the element, and omits it when absent, so existing styles are unaffected.
  • Tests for parsing, serialization roundtrip and the absent case.

This is a new public field on IndependentStyle, so it needs a minor version bump on release.

The Hayagriva side (using cs:intext for the author in form: "prose" citations, falling back to today's behavior when absent) is ready on a branch and depends on a release containing this change.

Part of #52

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.

1 participant