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

d-cite attribute key is reserved key in Vue #111

Open
SumNeuron opened this issue Nov 28, 2019 · 0 comments
Open

d-cite attribute key is reserved key in Vue #111

SumNeuron opened this issue Nov 28, 2019 · 0 comments

Comments

@SumNeuron
Copy link

The template component uses d-cite (v2) and <dt-cite> (v1) uses the node attribute key to specify citations. Vue reserves the key attribute and therefore d-cite / dt-cite is not compatible with Vue.

Please consider either adding optional attribute namespace to be configurable in say d-front-matter or have a fallback attribute e.g. $key for compatibility

example:

<d-front-matter>
  - distill-namespace: dp$

</d-front-matter>

<!-- -->

<d-cite dp$key=""/>

or just

<d-cite $key=""/>
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

No branches or pull requests

1 participant