Handle absolute markdown links with leading slash
This commit also handles relative linking when there is no path yet.
10 files changed
+75
-57
7420c7ad
→
0c46e67f
modified src/components/InlineMarkdown.svelte
@@ -3,6 +3,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -13,7 +14,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/components/Markdown.svelte
@@ -11,6 +11,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -22,8 +23,6 @@
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -63,7 +62,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -94,7 +93,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/lib/markdown.ts
@@ -1,4 +1,5 @@
|
|
| + | |
|
|
|
|
|
@@ -6,6 +7,8 @@ import markedLinkifyIt from "marked-linkify-it";
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -101,16 +104,19 @@ const anchorMarkedExtension = {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -139,15 +145,17 @@ export class Renderer extends BaseRenderer {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/lib/utils.ts
@@ -115,19 +115,23 @@ export function formatPublicExplorer(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/views/projects/Issue.svelte
@@ -171,7 +171,6 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified src/views/projects/Source.svelte
@@ -179,11 +179,9 @@
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/views/projects/Source/Blob.svelte
@@ -7,7 +7,6 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -20,8 +19,6 @@
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -53,31 +50,6 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -217,7 +189,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/project.spec.ts
@@ -468,6 +468,33 @@ test("external markdown link", async ({ context, page }) => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified tests/fixtures/repos/markdown.tar.bz2
modified tests/unit/utils.test.ts
@@ -167,6 +167,12 @@ describe("Path Manipulation", () => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|