@@ -10,8 +10,9 @@ const annotations_exporter = function (pl) {
1010 const paths = pl . config . paths ;
1111 let oldAnnotations ;
1212
13- /*
14- Returns the array of comments that used to be wrapped in raw JS.
13+ /**
14+ * Parses JS annotations.
15+ * @returns array of comments that used to be wrapped in raw JS
1516 */
1617 function parseAnnotationsJS ( ) {
1718 //attempt to read the file
@@ -38,6 +39,12 @@ const annotations_exporter = function (pl) {
3839 return oldAnnotationsJSON . comments ;
3940 }
4041
42+ /**
43+ * Build the annotation markdown.
44+ * @param annotationsYAML
45+ * @param markdown_parser
46+ * @returns annotation
47+ */
4148 function buildAnnotationMD ( annotationsYAML , markdown_parser ) {
4249 const annotation = { } ;
4350 const markdownObj = markdown_parser . parse ( annotationsYAML ) ;
@@ -48,6 +55,11 @@ const annotations_exporter = function (pl) {
4855 return annotation ;
4956 }
5057
58+ /**
59+ * Parse markdown file annotations.
60+ * @param annotations
61+ * @param parser
62+ */
5163 function parseMDFile ( annotations , parser ) {
5264 //let annotations = annotations;
5365 const markdown_parser = parser ;
@@ -65,8 +77,10 @@ const annotations_exporter = function (pl) {
6577 } ;
6678 }
6779
68- /*
69- Converts the *.md file yaml list into an array of annotations
80+ /**
81+ * Converts the *.md file yaml list into an array of annotations
82+ *
83+ * @returns annotations
7084 */
7185 function parseAnnotationsMD ( ) {
7286 const markdown_parser = new mp ( ) ;
@@ -77,6 +91,11 @@ const annotations_exporter = function (pl) {
7791 return annotations ;
7892 }
7993
94+ /**
95+ * Gathers JS & MD annotations.
96+ *
97+ * @returns array of annotations
98+ */
8099 function gatherAnnotations ( ) {
81100 const annotationsJS = parseAnnotationsJS ( ) ;
82101 const annotationsMD = parseAnnotationsMD ( ) ;
0 commit comments