Skip to content

Commit

Permalink
Remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
karimatthews committed Feb 5, 2019
1 parent f430280 commit bb0e632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ var html = j2m.md_to_html(md);
var html = j2m.jira_to_html(jira);
```

### Running tests

You can run `yarn test` or `npm test`

### FAQ

#### Q. Why doesn't this module support conversion of inline markdown?
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ const transformHash = function (hash, direction) {

const splitOutCodeblocks = function (str, direction) {
let hash = {};
// hash = {0: {string: 'not code', iscodeblock: false}, 1: {string: ```code```, iscodeblock: true}}
let array = [];

// This block should return an array where each element is either a codeblock or is not
// This block returns an array where each element is either a codeblock or is not
if (direction == 'toMarkdown') {
array = str.split(/(\{code[^]*?\{code\}|\{noformat[^]*?\{noformat\})/)
} else if (direction == 'toJira') {
Expand Down

0 comments on commit bb0e632

Please sign in to comment.