Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ impl NestedBlock {
// <aside>😁Hello</aside>
CALLOUT => {
html.push_str(&format!(
"<{}>{}{}</{}>",
"<{}>{}{}",
ASIDE_TAG_NAME,
self
.data
Expand All @@ -327,8 +327,11 @@ impl NestedBlock {
.to_string()
.trim_matches('\"'),
text_html,
ASIDE_TAG_NAME
));
html.push_str(&convert_nested_block_children_to_html(Arc::new(
self.to_owned(),
)));
html.push_str(&format!("</{}>", ASIDE_TAG_NAME));
},
// <img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="Google Logo" />
IMAGE => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta charset="UTF-8"><aside>📌<p>CALLOUT 1</p></aside>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "page",
"data": {},
"children": [
{
"type": "callout",
"data": {
"icon": "📌"
},
"children": [
{
"type": "paragraph",
"data": {
"delta": [
{
"insert": "CALLOUT 1"
}
]
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
📌
CALLOUT 1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async fn block_tests() {
let test_cases = generate_test_cases!(
heading,
callout,
callout_nested,
paragraph,
divider,
image,
Expand Down
Loading