react-docgen-markdown-renderer icon indicating copy to clipboard operation
react-docgen-markdown-renderer copied to clipboard

Normalize srcLink to Unix style path

Open tobiasweibel opened this issue 8 years ago • 2 comments

Basically to support Windows build systems.

tobiasweibel avatar Mar 02 '18 09:03 tobiasweibel

Sorry for the late response! I'm working on a new version that includes some sort of an "addon" mechanism to hook into custom handlers in react-docgen. I'll see what I can do to incorporate this into the next version 👍

OriR avatar Mar 12 '18 22:03 OriR

@tobiasweibel I've thought about it some more and srcLink and the new srcLinkUrl I'm adding in the new version should solve this issue. srcLink is how the path looks in the build system but srcLinkUrl is the actual url to the source therefore I added .replace(/\\/g, '/') to it.

You can look here at the changes here. Let me know if that's enough 👍

OriR avatar Apr 06 '18 17:04 OriR