Skip to content

Commit

Permalink
fix(docs-escape): stopped escaping markdown syntax in documentation
Browse files Browse the repository at this point in the history
fixes #61
  • Loading branch information
travi committed Jun 25, 2018
1 parent 3bbe05d commit a3514d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{/badges.consumer}}
{{#documentation.usage}}

{{documentation.usage}}
{{{documentation.usage}}}
{{/documentation.usage}}

{{#documentation.contributing}}
Expand All @@ -30,7 +30,7 @@
{{/badges.contribution}}
{{#documentation.contributing}}

{{documentation.contributing}}
{{{documentation.contributing}}}
{{/documentation.contributing}}

{{#references}}
Expand Down
6 changes: 4 additions & 2 deletions test/unit/readme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ ${buildBadgeGroup(contributionBadges).join('\n')}
});

suite('documentation', () => {
const markdownWithBackticksAndForwardSlashes = `\`\`\`sh${any.sentence()}\`\`\`https://any.url`;

test('that usage docs are shown after the contributing badges', async () => {
const usageDocs = any.sentence();
const usageDocs = markdownWithBackticksAndForwardSlashes;

await scaffoldReadme({
projectRoot,
Expand Down Expand Up @@ -130,7 +132,7 @@ ${buildBadgeGroup(contributionBadges).join('\n')}
});

test('that contribution docs are shown after the contributing badges', async () => {
const contributingDocs = any.sentence();
const contributingDocs = markdownWithBackticksAndForwardSlashes;

await scaffoldReadme({
projectRoot,
Expand Down

0 comments on commit a3514d5

Please sign in to comment.