Skip to content

Commit

Permalink
Merge pull request #22 from izolate/develop
Browse files Browse the repository at this point in the history
2.0.1
  • Loading branch information
izolate authored Aug 13, 2017
2 parents dbfdd43 + aba4033 commit a92a870
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.0.1] - 2017-08-13
### Changed
- Remove unused async function
- Correct documenation on doctype

## [2.0.0] - 2017-08-12
### Changed
- CLI invocation syntax
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Turns this :unamused:

Into this :tada:
```pug
!doctype html
doctype html
html(lang='en')
head
title Hello World!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html2pug",
"version": "2.0.0",
"version": "2.0.1",
"description": "Converts HTML to Pug",
"main": "src/index.js",
"bin": {
Expand Down
8 changes: 2 additions & 6 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ async function main ({ fragment, needsHelp, showVersion, tabs }) {
return console.log(help)
}

try {
const pug = await html2pug(stdin, { tabs, fragment })
console.log(pug)
} catch (e) {
throw e
}
const pug = html2pug(stdin, { tabs, fragment })
console.log(pug)
}

/**
Expand Down

0 comments on commit a92a870

Please sign in to comment.