From 0c092432c48567a40b650bea3305923f46f59077 Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Mon, 9 Dec 2024 00:55:18 -0800 Subject: [PATCH] Comment cleanup --- messages.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/messages.go b/messages.go index 8aa1439..ac56492 100644 --- a/messages.go +++ b/messages.go @@ -104,16 +104,18 @@ func nodeToBlocks(doc ast.Node, src []byte) ([]*pb.Block, error) { for cur := doc; cur != nil; cur = cur.NextSibling() { switch node := cur.(type) { - // case *ast.CodeBlock: // XXX: not supported, send as plain text or error // case *ast.CodeSpan: // case *ast.FencedCodeBlock: - // case *ast.HTMLBlock: // XXX: not supported, send as plain text or error // case *ast.Image: - // case *ast.RawHTML: // XXX: not supported, send as plain text or error // case *ast.String: // TODO: what's the difference between this and "Text"? - // case *ast.ThematicBreak: // XXX: not supported (properly) by Discord // case *ast.Blockquote: // TODO: actually supported // case *ast.Heading: // TODO: actually supported + // + // case *ast.ThematicBreak: // XXX: not supported (properly) by Discord + // case *ast.CodeBlock: // XXX: not supported, send as plain text or error + // case *ast.HTMLBlock: // XXX: not supported, send as plain text or error + // case *ast.RawHTML: // XXX: not supported, send as plain text or error + case *ast.Document: nodes, err := nodeToBlocks(cur.FirstChild(), src) if err != nil {