Skip to content

Conversation

@LuLaValva
Copy link
Contributor

Marko 6 is out, and interest has been growing! Uno works great with Marko already, but it would be awesome if examples didn't need a custom config for searching through .marko files. This PR adds that feature alongside some Marko documentation and examples.

Changes

  • Add .marko to the list of files for searching, everywhere I could find
  • Add a Marko example (using Marko Run, which is built on Vite)
  • Include Marko examples in a few docs pages

Limitations

  • Eventually, we will need a Marko extractor if we want support for the class shorthand
    • This almost isn't necessary if the project includes Attributify, but it is definitely nice to have for completion
  • The regex in packages-integrations/vscode/src/utils.ts doesn't support concise mode. I added support for optional ending tag name (<style></>), but concise mode is definitely a bigger deal 😅

@LuLaValva LuLaValva requested review from antfu and zyyv as code owners November 17, 2025 22:30
@netlify
Copy link

netlify bot commented Nov 17, 2025

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ff71932
🔍 Latest deploy log https://app.netlify.com/projects/unocss/deploys/691bd99054ecb20008633d30
😎 Deploy Preview https://deploy-preview-4995--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 18, 2025

Open in StackBlitz

commit: ff71932

@antfu antfu added this pull request to the merge queue Nov 18, 2025
Merged via the queue into unocss:main with commit ba06c02 Nov 18, 2025
11 checks passed
@LuLaValva LuLaValva deleted the add-marko branch November 18, 2025 08:09
@LuLaValva
Copy link
Contributor Author

Thanks for the super fast merge @antfu and @zyyv! This PR wasn't just documentation, it also changed the regex in the core library to include .marko files. Are there any steps I missed that would have triggered a patch or minor release?

@zyyv
Copy link
Member

zyyv commented Nov 19, 2025

@LuLaValva Released in v66.5.7

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.

3 participants