File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ var htmlSyntax = require('markup-it/syntaxes/html');
55var markdown = new MarkupIt ( markdownSyntax ) ;
66var html = new MarkupIt ( htmlSyntax ) ;
77
8- var parseMarkdown = function ( text ) {
8+ function parseMarkdown ( text ) {
99 md = markdown . toContent ( text ) ;
1010 parsed = html . toText ( md ) ;
1111 return parsed ;
1212} ;
1313
14- var wrap = function ( block , position = 'left' ) {
14+ function wrap ( block , position ) {
1515 var body = ( '<div class="ba-' + position + '">'
1616 + parseMarkdown ( block . body )
1717 + '</div>' ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " gitbook-plugin-block-align" ,
33 "description" : " A quick way of aligning markdown blocks in a GitBook." ,
4- "version" : " 0.2.0 " ,
4+ "version" : " 0.2.1 " ,
55 "author" : " Chris Born" ,
66 "license" : " Apache-2.0" ,
77 "engines" : {
You can’t perform that action at this time.
0 commit comments