Skip to content

Commit

Permalink
Merge pull request #2 from jackkoppa/fix/prism-lang-html
Browse files Browse the repository at this point in the history
Export as PrismLang.HTML, following support from @zeplin/cli
  • Loading branch information
jackkoppa authored Jan 6, 2020
2 parents 0e47a13 + 75c3c85 commit 77ff2a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ node_modules/
dist/

# Editor
.vscode/
.vscode/

# For local testing w/ `npm pack`
*.tgz
9 changes: 1 addition & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ export default class implements ConnectPlugin {
}

async process(context: ComponentConfig): Promise<ComponentData> {
/**
* @TODO Determine if we can switch to `PrismLang.HTML`
* Vue templates have no perfect analog in Prism-supported languages,
* though they're more similar to HTML than JSX.
* For now, `PrismLang.Markup` is a great solution;
* see https://github.com/zeplin/connected-components-beta-issues/issues/4#issuecomment-562738427
*/
const lang = PrismLang.Markup
const lang = PrismLang.HTML

const componentInfo = await parse(context.path)

Expand Down

0 comments on commit 77ff2a3

Please sign in to comment.