Skip to content

Commit

Permalink
fixes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
chaseadamsio committed Jun 24, 2019
1 parent 260c27b commit b636125
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 2 deletions.
62 changes: 60 additions & 2 deletions parse/snapshots/element/plain.org.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,70 @@
"End": 250
}
]
},
{
"NodeType": "Paragraph",
"Start": 252,
"End": 328,
"ChildrenNodes": [
{
"NodeType": "Text",
"ChildrenNodes": null,
"Val": "this should be two separate code blocks with\n either ",
"Start": 252,
"End": 304
},
{
"NodeType": "Code",
"ChildrenNodes": [
{
"NodeType": "Text",
"ChildrenNodes": null,
"Val": "this",
"Start": 306,
"End": 310
}
],
"Val": "~this~",
"Start": 305,
"End": 310
},
{
"NodeType": "Text",
"ChildrenNodes": null,
"Val": "\n or ",
"Start": 311,
"End": 316
},
{
"NodeType": "Code",
"ChildrenNodes": [
{
"NodeType": "Text",
"ChildrenNodes": null,
"Val": "that",
"Start": 318,
"End": 322
}
],
"Val": "~that~",
"Start": 317,
"End": 322
},
{
"NodeType": "Text",
"ChildrenNodes": null,
"Val": " foo.",
"Start": 323,
"End": 328
}
]
}
],
"Start": 19,
"End": 251
"End": 329
}
],
"Start": 0,
"End": 251
"End": 329
}
4 changes: 4 additions & 0 deletions testdata/in/element/plain.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ It also has a --- few mdash---es.
this should be a code element followed by dashes: =code=---

a dot in a code element such as =.git=, =.hg= or =.bash_profile= should still let it be a code element.

this should be two separate code blocks with
either ~this~
or ~that~ foo.
5 changes: 5 additions & 0 deletions transform/snapshots/element/plain.org.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@
<p>
a dot in a code element such as <code>.git</code>, <code>.hg</code> or <code>.bash_profile</code> should still let it be a code element.
</p>
<p>
this should be two separate code blocks with
either <code>this</code>
or <code>that</code> foo.
</p>

</div>

0 comments on commit b636125

Please sign in to comment.