Skip to content

Commit 1ac25fe

Browse files
authored
Merge pull request #38 from sidraval/master
Update prism to 1.6.0
2 parents 24f0be8 + b6e47d5 commit 1ac25fe

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ It also generates a JSON object of the parsed comments that can be used to gener
166166
*/
167167
```
168168

169-
**NOTE:** By default, the style guide only loads Prism markup (HTML) syntax highlighting. If you need another [syntax language](https://www.jsdelivr.com/projects/prism) (use files for `v1.4.1`), you'll have to add it to the `context.scripts` array.
169+
**NOTE:** By default, the style guide only loads Prism markup (HTML) syntax highlighting. If you need another [syntax language](https://www.jsdelivr.com/projects/prism) (use files for `v1.6.0`), you'll have to add it to the `context.scripts` array.
170170

171171
* `@code` - Same as `@example`, but can be used to override the code output to be different than the example output. Useful if you need to provide extra context for the example that does not need to be shown in the code. If you need to use the `@` symbol at the start of a newline (such as with `@extend` or `@include` in CSS preprocessors), use the HTML entity encoding `@`, otherwise the parser will try to parse it as a tag.
172172

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ function livingcss(source, dest, options) {
127127

128128
// throw error if an @sectionof referenced a section that was never defined
129129
for (var section in tags.forwardReferenceSections) {
130-
if (!tags.forwardReferenceSections.hasOwnProperty(section)) continue;
130+
if (!tags.forwardReferenceSections.hasOwnProperty(section)) {
131+
continue;
132+
}
131133

132134
throw tags.forwardReferenceSections[section][0].error;
133135
}
@@ -190,4 +192,4 @@ module.exports = livingcss;
190192
module.exports.generate = generate;
191193
module.exports.parseComments = parseComments;
192194
module.exports.tags = tags;
193-
module.exports.utils = utils;
195+
module.exports.utils = utils;

template/template.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
</div>
7979

8080
<!-- prism -->
81-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/prism/1.4.1/themes/prism.css">
82-
<script src="https://cdn.jsdelivr.net/prism/1.4.1/prism.js"></script>
83-
<script src="https://cdn.jsdelivr.net/prism/1.4.1/components/prism-markup.min.js"></script>
81+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/prism/1.6.0/themes/prism.css">
82+
<script src="https://cdn.jsdelivr.net/prism/1.6.0/prism.js"></script>
83+
<script src="https://cdn.jsdelivr.net/prism/1.6.0/components/prism-markup.min.js"></script>
8484
<!-- /prism -->
8585

8686
<!-- user scripts -->
@@ -92,4 +92,4 @@
9292
{{> mainScript}}
9393

9494
</body>
95-
</html>
95+
</html>

test/tags.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ describe('tags', function() {
217217
parseComments(data, file, tags, {sections: sections, pages: pages});
218218
parseComments(data2, file2, tags, {sections: sections, pages: pages});
219219

220-
expect(sections['buttons'].children).to.exist;
221-
expect(sections['buttons'].children.length).to.equal(1);
222-
expect(sections['buttons'].children[0].name).to.equal('Awesome Button');
220+
expect(sections.buttons.children).to.exist;
221+
expect(sections.buttons.children.length).to.equal(1);
222+
expect(sections.buttons.children[0].name).to.equal('Awesome Button');
223223

224224
done();
225225
});
@@ -500,4 +500,4 @@ describe('tags', function() {
500500

501501
});
502502

503-
});
503+
});

0 commit comments

Comments
 (0)