Skip to content

Conversation

xbill82
Copy link
Contributor

@xbill82 xbill82 commented Jun 25, 2019

What does this PR do?

Automatically fix the indentation of imported code snippets (useful when importing partial snippet files).

How should this be manually tested?

import a code-block with significant (consistent) indentation from a snippet file, like

function() {
  foo.forEach(f => {
    /* snippet:start */
    console.log(f)
    /* snippet:end */
  })
}

See how the imported snippet is

console.log(f) // Look ma! No spaces at the beginning of the line!

Other changes

Switched to vuepress-frontmatter-lint package.

@xbill82 xbill82 merged commit 4f180a0 into 3-dev Jun 27, 2019
@xbill82 xbill82 deleted the import-snippet-fix-indent branch June 27, 2019 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants