Skip to content

feat: 🎸 add default configs for crepe #1928

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

Merged
merged 1 commit into from
May 31, 2025
Merged

feat: 🎸 add default configs for crepe #1928

merged 1 commit into from
May 31, 2025

Conversation

Saul-Mirone
Copy link
Member

@Saul-Mirone Saul-Mirone commented May 31, 2025

  • I read the contributing guide
  • I agree to follow the code of conduct

Summary

Add default configs for crepe. Make it possible to partially load languages in codemirror.

const builder = new CrepeBuilder({
  root: '#app',
  defaultValue: markdown,
})

builder.addFeature(codeMirror, {
  languages: [
    LanguageDescription.of({
      name: "Markdown",
      extensions: ["md", "markdown", "mkd"],
      load() {
        return import("@codemirror/lang-markdown").then(m => m.markdown())
      }
    }),
  ]
});

builder.create();

Load only one language:
image

Load all languages:
image

How did you test this change?

CI and manaully.

Make it possible to partially load languages in codemirror
Copy link

changeset-bot bot commented May 31, 2025

⚠️ No Changeset found

Latest commit: 9fa889b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented May 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
milkdown-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2025 11:57am

@Saul-Mirone Saul-Mirone added this pull request to the merge queue May 31, 2025
Merged via the queue into main with commit fc3606a May 31, 2025
13 checks passed
@Saul-Mirone Saul-Mirone deleted the default-configs branch May 31, 2025 12:16
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