MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / toRouteHref

Function toRouteHref

assets/article-cards.js:1009–1011  ·  view source on GitHub ↗
(markdownPath)

Source from the content-addressed store, hash-verified

1007 }
1008
1009 function toRouteHref(markdownPath) {
1010 return '#/' + markdownPath.replace(/\.md$/i, '').replace(/^\/+/, '');
1011 }
1012
1013 function normalizeMarkdownPath(markdownPath) {
1014 var normalized = (markdownPath || '').replace(/^\/+/, '');

Callers 4

extractArticleIndexFunction · 0.85
toHomeUpdateItemFunction · 0.85
renderFeaturedCardsFunction · 0.85
toArticleItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected