Skip to content

Commit

Permalink
Comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Dec 9, 2024
1 parent 6f4be6a commit 0c09243
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c09243

Please sign in to comment.