Comments (3)
Yeah, I think it makes sense to have a better default and a custom function for users to customize the naming convention. PR welcome :)
from unplugin-vue-markdown.
Based on https://github.com/vuejs/core/blob/623ba514ec0f5adc897db90c0f986b1b6905e014/packages/compiler-sfc/src/compileScript.ts#L959, the only way to change the name seems to be adding:
<script>
export default { name: 'replace name' }
</script>
from unplugin-vue-markdown.
I had done something like this in VitePress: https://github.com/vuejs/vitepress/blob/1f4ae02138820f2ee78ce6ce39847cdfd0ba19ca/src/node/markdownToVue.ts#L314-L339
Similar stuff can be added here: https://github.com/mdit-vue/unplugin-vue-markdown/blob/f1ccc5f8751ce4020059b654219f9e55d17eec55/src/core/markdown.ts#L211-L232
from unplugin-vue-markdown.
Related Issues (20)
- 可以支持动态markdown 吗 HOT 1
- How to use as just a component and render a markdown string? HOT 1
- Vite example didn't work - 2 bugs : Element is missing end tag and Unknown word
- Using `<style>` in a Markdown file results in Vite error HOT 1
- Error with `headEnabled = true`: `@vueuse/head` missing
- [For SSR] Failed to resolve components from katex tag names such as ('mo', 'mi', 'msqrt') and resulted a Hydration mismatch HOT 1
- 不支持Vitepress中的Unescape in Code Blocks功能 HOT 1
- [Discussion/Question] Can I pass props into my Markdown components and have them rendered within the Markdown component? HOT 1
- Automatically convert internal links to router links. HOT 1
- Any Render fails when upgrade from 0.25.2 to 0.26.0 HOT 2
- Any Render fails when upgrade from 0.25.2 to 0.26.0 - with demo repo
- Unable to build project after adding this package
- [Bug report] rspack config error HOT 1
- How do I pass a value to markdown? HOT 1
- Cannot work with Nuxt HOT 2
- "Internal server error: Duplicate attribute" when there's headings in the markdown file HOT 1
- Getting ES Module Error HOT 3
- Language does not exist: vue | Markdown is not working.
- Support Markdown Table of Content
- script setup does not build when using TypeScript flavour
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unplugin-vue-markdown.