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

add meta to markdown-it env #444

Closed
4 tasks done
kagawagao opened this issue Nov 16, 2021 · 1 comment · Fixed by #856
Closed
4 tasks done

add meta to markdown-it env #444

kagawagao opened this issue Nov 16, 2021 · 1 comment · Fixed by #856
Labels
build Related to the build system enhancement New feature or request

Comments

@kagawagao
Copy link

kagawagao commented Nov 16, 2021

Is your feature request related to a problem? Please describe.

there is no context info currently, such as filepath/vite compiler, when markdown-it parse markdown files, and this leads to the inability to resolve relative file path when parsing markdown files, or add dependency to compiler to make hmr work as expected

for example, snippet

if (loader) {
loader.addDependency(src)
}

// loader always undefined
if (loader) {
  loader.addDependency(src)
}

Describe the solution you'd like

add meta to markdown-it be called) when render

Describe alternatives you've considered

No response

Additional context

No response

Validations

@kiaking kiaking added enhancement New feature or request build Related to the build system labels May 24, 2022
@brc-dd
Copy link
Member

brc-dd commented Jul 7, 2022

#869 will add file path in env. Will track that loader thing in #117.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build Related to the build system enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants