Skip to content

Fix Marp detection for production course JSON - #1081

Merged
edeleastar merged 1 commit into
tutors-sdk:developmentfrom
lgriffin:fix/marp-rendering
Jul 17, 2026
Merged

Fix Marp detection for production course JSON#1081
edeleastar merged 1 commit into
tutors-sdk:developmentfrom
lgriffin:fix/marp-rendering

Conversation

@lgriffin

Copy link
Copy Markdown
Contributor

Summary

  • Fixed isMarpContent() to accept both boolean true and string "true" for frontMatter.marp — the tutors generator outputs a boolean, causing detection to silently fail in production
  • Added buildMarpMarkdown() to reconstruct Marp frontmatter directives (theme, paginate) when the generator strips them from contentMd

Test plan

  • Verified locally against reference-course at /talk/reference-course/topic-11-new-content-types/unit-1/talk-marp
  • Slides render with navigation, theme, and pagination
  • No regressions on existing content types

🤖 Generated with Claude Code

The tutors generator outputs frontMatter.marp as boolean true, but
isMarpContent() only checked for string "true". Also reconstruct
Marp frontmatter directives (theme, paginate) when the generator
strips them from contentMd.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

@lgriffin is attempting to deploy a commit to the Jordan Harrison Team on Vercel.

A member of the Team first needs to authorize it.

@edeleastar
edeleastar merged commit f691afe into tutors-sdk:development Jul 17, 2026
0 of 4 checks passed
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