diff --git a/src/classes/paragraph_converter.cr b/src/classes/paragraph_converter.cr index 77ab31c..d62185f 100644 --- a/src/classes/paragraph_converter.cr +++ b/src/classes/paragraph_converter.cr @@ -47,6 +47,11 @@ class ParagraphConverter paragraph = paragraphs.shift children = MarkupConverter.convert(paragraph.text, paragraph.markups) node = Preformatted.new(children: children) + when PostResponse::ParagraphType::SECTION_CAPTION + # unused. just here to catch the type instead of implicitly going to the + # else block + paragraph = paragraphs.shift + node = Empty.new when PostResponse::ParagraphType::ULI list_items = convert_uli(paragraphs) node = UnorderedList.new(children: list_items) diff --git a/src/models/post_response.cr b/src/models/post_response.cr index 99a0931..1088d25 100644 --- a/src/models/post_response.cr +++ b/src/models/post_response.cr @@ -52,6 +52,7 @@ class PostResponse P PQ PRE + SECTION_CAPTION ULI end