Giter Club home page Giter Club logo

Comments (3)

antfu avatar antfu commented on May 28, 2024 1

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.

privatenumber avatar privatenumber commented on May 28, 2024

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>

https://play.vuejs.org/#eNp9kTFPwzAQhf/K6ZYuVRDqFgoSoA4wAAJGL5ZzDSmObdnnEinKf8d21AAS6uZ73zvfO3vEW+eqYySscRuU7xxDII7uRhhlTWCQcA2XV8JsL2acQCqWMw3OeoaG9jJqhhGM7KmGlSenpaJSrmD6049r5JBu33dtdQjWpNmjMAACle1dp8k/O+7SdIE1FJKZ1Np+PRaNfaT1SVcfpD7/0Q9hyJrAF0+B/JEELoylb4lnvHt7oiGdF9jbJurkPgNfKVgdc8bZdhdNk2L/8pW0D31+nM6072E3MJlwWioHzc6p+AWmD7g/s/pP3E21KX3CTDh9AyUnkz8=

from unplugin-vue-markdown.

brc-dd avatar brc-dd commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.