Skip to content

Commit 974f6f1

Browse files
committed
bug fix
1 parent f726fc6 commit 974f6f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ var htmlSyntax = require('markup-it/syntaxes/html');
55
var markdown = new MarkupIt(markdownSyntax);
66
var 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>');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {

0 commit comments

Comments
 (0)