Skip to content

Instantly share code, notes, and snippets.

@udoprog
Last active February 25, 2016 16:50
Show Gist options
  • Select an option

  • Save udoprog/3ca9d338176fa38e5300 to your computer and use it in GitHub Desktop.

Select an option

Save udoprog/3ca9d338176fa38e5300 to your computer and use it in GitHub Desktop.
Failing enum-based API Blueprint
{ code: 1,
message: 'parser exception: \'mismatched adapter and node type\'',
location: [] }
var protagonist = require('protagonist');
test = (
"# Data Structures\n" +
"## TimeUnit (enum[string])\n" +
"+ Members\n" +
" + `hello`"
);
protagonist.parse(test, function(error, result) {
if (error) {
console.log(error);
return;
}
console.log(result);
});
@zdne
Copy link

zdne commented Feb 25, 2016

# Data Structures

## TimeUnit (enum[string])
### Members
- hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment