Second and failing file
This commit is contained in:
parent
808349d565
commit
db4be0eee3
@ -107,7 +107,16 @@ abstract class TestDataReader {
|
|||||||
@NonNull
|
@NonNull
|
||||||
private TestData testData(@NonNull JsonObject jsonObject) {
|
private TestData testData(@NonNull JsonObject jsonObject) {
|
||||||
|
|
||||||
final String description = jsonObject.get("description").getAsString();
|
final String description;
|
||||||
|
{
|
||||||
|
final JsonElement element = jsonObject.get("description");
|
||||||
|
if (element != null
|
||||||
|
&& element.isJsonPrimitive()) {
|
||||||
|
description = element.getAsString();
|
||||||
|
} else {
|
||||||
|
description = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final String input = jsonObject.get("input").getAsString();
|
final String input = jsonObject.get("input").getAsString();
|
||||||
if (TextUtils.isEmpty(input)) {
|
if (TextUtils.isEmpty(input)) {
|
||||||
|
25
markwon/src/test/resources/tests/second.yaml
Normal file
25
markwon/src/test/resources/tests/second.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
input: |-
|
||||||
|
First **line** is *always*
|
||||||
|
~~strike~~ down
|
||||||
|
|
||||||
|
> Some quote here!
|
||||||
|
|
||||||
|
# Header 1
|
||||||
|
## Header 2
|
||||||
|
|
||||||
|
and `some code` and more:
|
||||||
|
|
||||||
|
```java
|
||||||
|
the code in multiline
|
||||||
|
```
|
||||||
|
|
||||||
|
output:
|
||||||
|
- text: "First "
|
||||||
|
- b: "line"
|
||||||
|
- text: " "
|
||||||
|
- i: "always"
|
||||||
|
- text: " "
|
||||||
|
- s: "strike"
|
||||||
|
- text: " down\n\n"
|
||||||
|
- blockquote: "Some quote here!"
|
||||||
|
- text: "\n\n"
|
Loading…
x
Reference in New Issue
Block a user