Skip to content

Commit 6fd4086

Browse files
committed
fix: embed files error
1 parent 2058163 commit 6fd4086

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/embed-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Sometimes you don't want to embed a whole file. Maybe because you need just a fe
6262
[filename](_media/example.js ':include :type=code :fragment=demo')
6363
```
6464

65-
In your code file you need to surround the fragment between `/// [demo]` lines (before and after the fragment).
65+
In your code file you need to surround the fragment between `/// [demo]` lines (before and after the fragment).
6666
Alternatively you can use `### [demo]`.
6767

6868
Example:
@@ -153,7 +153,7 @@ The `LABEL` can be any text you want. It acts as a _fallback_ message if the lin
153153
### Render a codeblock from a gist
154154

155155
The format is the same as the previous section, but with `:type=code` added to the alt text. As with the [Embedded file type](#embedded-file-type) section, the syntax highlighting will be **inferred** from the extension (e.g. `.js` or `.py`), so you can leave the `type` set as `code`.
156-
156+
157157
Here is the format:
158158

159159
```markdown

src/core/render/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function prerenderEmbed({ compiler, raw = '', fetch }, done) {
101101
const compile = compiler._marked;
102102
let tokens = compile.lexer(raw);
103103
const embedTokens = [];
104-
const linkRE = compile.InlineLexer.rules.link;
104+
const linkRE = compile.Lexer.rules.inline.link;
105105
const links = tokens.links;
106106

107107
tokens.forEach((token, index) => {

0 commit comments

Comments
 (0)