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

chore: add alias vue -> markup to enable syntax highlighting #8945

Merged
merged 1 commit into from
May 26, 2023

Conversation

bsmth
Copy link
Member

@bsmth bsmth commented May 26, 2023

Summary

We have build errors that vue is not a detected language. There is no support for vue in Prism, an alternative is to use markup which is supported without additional Yari dependencies. Adding an alias will allow us to highlight the language and preserve Prettier linting in content.

Problem

Prism does not support vue as a language, see:

Solution

Add an alias for markup so that the language will be highlighted and Prettier can still format the examples.

Screenshots

Before

image

After

image

How did you test this change?

On http://localhost:5042/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_computed_properties

Other:
Opening this one in favor of mdn/content#26987

@bsmth bsmth requested a review from caugner May 26, 2023 14:09
@caugner caugner merged commit a01c650 into mdn:main May 26, 2023
@bsmth bsmth deleted the vue-prism branch May 26, 2023 15:40
@bsmth
Copy link
Member Author

bsmth commented May 26, 2023

Thanks @caugner 🙌

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