vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.53k stars 4.76k forks source link

Documentation for code import does not describe the syntax completely #581

Closed cfjedimaster closed 6 years ago

cfjedimaster commented 6 years ago

Bug report

The docs for code imports (https://vuepress.vuejs.org/guide/markdown.html#import-code-snippets) show this syntax: <<< @/test/markdown/fragments/snippet.js{2}. While most of it makes sense, the {2} at the end is not documented. Does it mean "from line 2 and onward" or does it mean something else?

Version

Current live docs.

Steps to reproduce

Doc issue.

What is expected?

An explanation about the {...} portion.

What is actually happening?

It is not explained.

Other relevant information

n/a

ulivz commented 6 years ago

It means the line highlighting config.