lib/jekyll-chatgpt-translate/plain.rb in jekyll-chatgpt-translate-0.0.24 vs lib/jekyll-chatgpt-translate/plain.rb in jekyll-chatgpt-translate-0.0.25
- old
+ new
@@ -104,11 +104,11 @@
def list(content, _type)
content
end
- def list_item(content, _type)
- "#{content.strip}\n\n"
+ def list_item(content, type)
+ "#{type == :ordered ? '1.' : '*'} #{content.strip}\n\n"
end
def paragraph(text)
unless text.start_with?('```')
text.gsub!(/\n+/, ' ')