You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Switch to a markdown server where internal (#) links work #615
This fix will require changing the dependency and docs:view script in package.json, regenerating package-lock.json. We should strongly consider pinning all of the versions of the dependencies in package.json so that external updates do not break when generating the package-lock.json.
I reproduced the bug locally and also tested the latest version of @mryhryki/markdown-preview (0.8.23). The URL updates to the expected #anchor, but the page still doesn't scroll to the target section.
Before I start replacing the preview server, is there a preferred replacement package you'd like contributors to use, or are we free to choose any Markdown preview server that supports internal anchor links while preserving the current workflow?
I evaluated MarkServ as a replacement. It installs through npm, renders the existing documentation correctly with GitHub-style Markdown, and supports internal anchor links. Images and relative links also appear to work correctly. Unless you have concerns about using it, I'll prepare a PR with the dependency and docs:view updates.
MarkServ looks like a good solution to me. Give it a try and see how it works. Updating docs:view should be sufficient to start that server instead of the old one when a codespace is created or started.
One other thing you'll want to check on is the postStart.bash script in .devcontainer. It uses some functions from bin/lib/checkServices.lib.bash to check that all of the servers are running when a codespace is created or started. The relevant code in checkServices.lib.bash may be specific to the current markdown server and thus may need to be updated.
** MarkServ** renders the documentation well and supports the existing links, but it brings in a snyk dependency that is causing installation issues in my environment.
serve-markdown-local didn't work with the FarmData2 documentation layout because it couldn't resolve the root markdown files correctly.
I also ran into an unrelated @vvago/vale installation error (ReferenceError: unzipper is not defined) on Windows, which prevents a clean npm install regardless of the markdown preview package.
Before I continue evaluating more options, do you have a preferred direction? For example, would you prefer another npm-based preview package, or would a small in-repo markdown server (using libraries like markdown-it) be acceptable?
I have a strong preference for an npm installed preview package.
You mention an issue on Windows. Are you trying to install the dev environment locally on your machine? Everything in the current dev environment is designed to run within a Codespace on Github which will run on a linux box. If you are not already, I'd suggest trying MarkServ in the dev environment Codespace and see if that resolves the snyk issue.
Activity
Neha406-ui commentedon Jul 6, 2026
I reproduced the bug locally and also tested the latest version of @mryhryki/markdown-preview (0.8.23). The URL updates to the expected #anchor, but the page still doesn't scroll to the target section.
Before I start replacing the preview server, is there a preferred replacement package you'd like contributors to use, or are we free to choose any Markdown preview server that supports internal anchor links while preserving the current workflow?
braughtg commentedon Jul 6, 2026
I do not have preference for the markdown preview replacement. A few things that I think would be ideal are:
If you find several good candidates feel free to post them here and I'll be happy to have a quick look and see if anything jumps out.
Neha406-ui commentedon Jul 7, 2026
I evaluated MarkServ as a replacement. It installs through npm, renders the existing documentation correctly with GitHub-style Markdown, and supports internal anchor links. Images and relative links also appear to work correctly. Unless you have concerns about using it, I'll prepare a PR with the dependency and
docs:viewupdates.braughtg commentedon Jul 7, 2026
MarkServ looks like a good solution to me. Give it a try and see how it works. Updating
docs:viewshould be sufficient to start that server instead of the old one when a codespace is created or started.One other thing you'll want to check on is the
postStart.bashscript in.devcontainer. It uses some functions frombin/lib/checkServices.lib.bashto check that all of the servers are running when a codespace is created or started. The relevant code incheckServices.lib.bashmay be specific to the current markdown server and thus may need to be updated.Neha406-ui commentedon Jul 8, 2026
I tested a few alternatives.
snykdependency that is causing installation issues in my environment.@vvago/valeinstallation error (ReferenceError: unzipper is not defined) on Windows, which prevents a cleannpm installregardless of the markdown preview package.Before I continue evaluating more options, do you have a preferred direction? For example, would you prefer another npm-based preview package, or would a small in-repo markdown server (using libraries like
markdown-it) be acceptable?braughtg commentedon Jul 8, 2026
I have a strong preference for an npm installed preview package.
You mention an issue on Windows. Are you trying to install the dev environment locally on your machine? Everything in the current dev environment is designed to run within a Codespace on Github which will run on a linux box. If you are not already, I'd suggest trying MarkServ in the dev environment Codespace and see if that resolves the snyk issue.