Browse Source

Fixed link generation for module-module refs.

woollybah 6 years ago
parent
commit
a4009aeb61
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/makemd/docstyle.bmx

+ 5 - 1
src/makemd/docstyle.bmx

@@ -103,7 +103,11 @@ Type TDocStyle Extends TBBLinkResolver
 				url = "../../.." + url
 			End If
 		Else
-			url=relRootDir+url
+			If doc.kind = "Module" And node.kind = "Module" Then
+				url=".." + url
+			Else
+				url=relRootDir+url
+			End If
 		EndIf
 		Return "[" + link + "](" + url + ")"