This repository was archived by the owner on May 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ const Handlebars = require ( 'handlebars' ) ;
2+
3+ Handlebars . registerHelper ( 'replaceNewLinesWithBR' , block => block . replace ( / [ \r \n ] + / g, '<br>' ) ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ const path = require('path');
33
44const Handlebars = require ( 'handlebars' ) ;
55
6+ require ( './helpers' ) ;
7+
68/**
79 * Markdown template plugin for doxdox.
810 *
Original file line number Diff line number Diff line change 2727| Name | Type | Description | |
2828| ---- | ---- | ----------- | -------- |
2929{{ #each tags.param }}
30- | {{ name }} | {{ #each types }} `{{ . }} ` {{ /each }} | {{{ description }}} | {{ #if isOptional }} *Optional*{{ else }} {{ /if }} |
30+ | {{ name }} | {{ #each types }} `{{{ . }}} ` {{ /each }} | {{{ replaceNewLinesWithBR description }}} | {{ #if isOptional }} *Optional*{{ else }} {{ /if }} |
3131{{ /each }}
3232
3333{{ /if }}
3939| Name | Type | Description | |
4040| ---- | ---- | ----------- | -------- |
4141{{ #each tags.param }}
42- | {{ name }} | {{ #each types }} `{{ . }} ` {{ /each }} | {{{ description }}} | {{ #if isOptional }} *Optional*{{ else }} {{ /if }} |
42+ | {{ name }} | {{ #each types }} `{{{ . }}} ` {{ /each }} | {{{ replaceNewLinesWithBR description }}} | {{ #if isOptional }} *Optional*{{ else }} {{ /if }} |
4343{{ /each }}
4444
4545{{ /if }}
You can’t perform that action at this time.
0 commit comments