Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 11a9c12

Browse files
committed
chore(website): parse markdown in docs
1 parent 822749b commit 11a9c12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

website/docgen/processors/tag-fixer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
var _ = require('lodash');
2+
var marked = require('marked');
23

34
/**
45
* Add the description property to the doc. The description is all the text that
56
* goes before the first annotation.
67
* @param {!Object} doc Current doc.
78
*/
89
var addDescription = function(doc) {
9-
doc.description = (doc.description || '').replace(/\n$/, '');
10+
doc.description = marked((doc.description || '').replace(/\n$/, ''));
1011
};
1112

1213
/**

website/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"karma-chrome-launcher": "^0.1.4",
1919
"karma-jasmine": "^0.1.5",
2020
"lodash": "^2.4.1",
21+
"marked": "^0.3.3",
2122
"minijasminenode": "^1.1.1"
2223
},
2324
"scripts": {

0 commit comments

Comments
 (0)