Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Only when you set both the `routerMode: 'history'` and `externalLinkTarget: '_se

### Resizing


```md
![logo](https://docsify.js.org/_media/icon.svg ':size=WIDTHxHEIGHT')
![logo](https://docsify.js.org/_media/icon.svg ':size=50x100')
Expand All @@ -121,6 +122,19 @@ Only when you set both the `routerMode: 'history'` and `externalLinkTarget: '_se
![logo](https://docsify.js.org/_media/icon.svg ':id=someCssId')
```

### Absolute Path

```md

![logo](:docs/_media/icon.svg 'with :')
![logo](//docs/_media/icon.svg 'with //')

```

![logo](:docs/_media/icon.svg 'with :')

![logo](//docs/_media/icon.svg 'with //')

## Customise ID for headings

```md
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/compiler/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isAbsolutePath, getPath, getParentPath } from '../../router/util';

export const imageCompiler = ({ renderer, contentBase, router }) =>
(renderer.image = (href, title, text) => {
let url = href;
let url = href.replace(/^\/+|^:/, '');
let attrs = [];

const { str, config } = getAndRemoveConfig(title);
Expand Down