| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3c9b3d9 commit e221023
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -95,6 +95,7 @@ Only when you set both the `routerMode: 'history'` and `externalLinkTarget: '_se | |||
| 95 | 95 | ||
| 96 | 96 | ### Resizing | |
| 97 | 97 | ||
| 98 | + | ||
| 98 | 99 | ```md | |
| 99 | 100 |  | |
| 100 | 101 |  | |
@@ -121,6 +122,19 @@ Only when you set both the `routerMode: 'history'` and `externalLinkTarget: '_se | |||
| 121 | 122 |  | |
| 122 | 123 | ``` | |
| 123 | 124 | ||
| 125 | + ### Absolute Path | ||
| 126 | + | ||
| 127 | + ```md | ||
| 128 | + | ||
| 129 | +  | ||
| 130 | +  | ||
| 131 | + | ||
| 132 | + ``` | ||
| 133 | + | ||
| 134 | +  | ||
| 135 | + | ||
| 136 | +  | ||
| 137 | + | ||
| 124 | 138 | ## Customise ID for headings | |
| 125 | 139 | ||
| 126 | 140 | ```md | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ import { isAbsolutePath, getPath, getParentPath } from '../../router/util'; | |||
| 3 | 3 | ||
| 4 | 4 | export const imageCompiler = ({ renderer, contentBase, router }) => | |
| 5 | 5 | (renderer.image = (href, title, text) => { | |
| 6 | - let url = href; | ||
| 6 | + let url = href.replace(/^\/+|^:/, ''); | ||
| 7 | 7 | let attrs = []; | |
| 8 | 8 | ||
| 9 | 9 | const { str, config } = getAndRemoveConfig(title); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments