question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose __path and __relativePath options on md instance for md plugins

See original GitHub issue

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

I found that #1240 has removed these two parameters, which makes it impossible for me to customize the MD plugin on this basis

Describe the solution you’d like

Can you __ Path and __ Relativepath these two attributes are added to the MD instance to better customize the MD plugin

Describe alternatives you’ve considered

No response

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
meteorlxycommented, Aug 30, 2022

Uh yes, I forgot that.

1reaction
flingypcommented, Aug 30, 2022

@meteorlxy

I finally used env.sfcblocks.scripts because vitepress does not seem to handle 'env.sfcblocks.scriptsetup` code logic. But thank you for guiding me to solve the problem.

const vueSrc = [
    ...injectPageDataCode(
      sfcBlocks?.scripts.map((item) => item.content) ?? [],
      pageData,
      replaceRegex
    ),
    `<template><div>${replaceConstants(
      html,
      replaceRegex,
      vueTemplateBreaker
    )}</div></template>`,
    ...(sfcBlocks?.styles.map((item) => item.content) ?? []),
    ...(sfcBlocks?.customBlocks.map((item) => item.content) ?? [])
  ].join('\n')
Read more comments on GitHub >

github_iconTop Results From Across the Web

markdown-magic/README.md at master - GitHub
This README.md is generated with markdown-magic view the raw file to see how. ... Options: src : The relative path to the file...
Read more >
Markdown relative path being replaced with absolute path
When I build the markdown file, it is replacing relative paths to images with absolute paths. I am using the Markdown Editing and...
Read more >
Configuration - MkDocs
All paths in the navigation configuration must be relative to the docs_dir configuration option. See the section on configuring pages and navigation for...
Read more >
Links and Cross References | DocFX website - NET
Relative path vs.​​ It's recommended to always use relative path to reference another file in the same project. Relative path will be resolved...
Read more >
Absolute path needs to start with / for compatibility with other ...
But relative and absolute paths to files don't work there. E.g. In obsidian in path “folder1/folder2/file.md”: “forler1” is a root folder. In ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found