Skip to content

Conversation

@jbax1899
Copy link
Member

@jbax1899 jbax1899 commented Jan 2, 2026

Add a pipelines for the Discord bot that normalizes text input and output.
For now, normalize outbound URLs without reflowing message formatting.
This system allows adding additional filters later as needed.
This project is markdown-heavy, so use robust tooling rather than simple regex parsing.

@jbax1899 jbax1899 added the enhancement New feature or request label Jan 2, 2026
@jbax1899 jbax1899 marked this pull request as ready for review January 2, 2026 08:53
jbax1899 and others added 17 commits January 2, 2026 23:51
…xt-validation' of https://github.com/arete-org/arete into feat(validation)--add-structure-for-inbound/outbound-text-validation
@jbax1899 jbax1899 requested a review from PolybiusPro January 5, 2026 04:45
@jbax1899 jbax1899 self-assigned this Jan 5, 2026
// walks the AST so we can collect protected ranges and avoid editing inside Markdown constructs.
import { visit } from 'unist-util-visit';

// provides robust URL detection in plain text (punctuation/parentheses/etc.) without maintaining a regex.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linkify-it actually uses regex under the hood

@jbax1899 jbax1899 merged commit e7bad8b into main Jan 13, 2026
5 checks passed
@jbax1899 jbax1899 deleted the feat(validation)--add-structure-for-inbound/outbound-text-validation branch January 20, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants