feat: detect and convert markdown tables to HTML in publication texts#275
Open
feat: detect and convert markdown tables to HTML in publication texts#275
Conversation
…blicação Adicionar o método estático `_has_markdown_table` ao `TextDictHandler` para identificar textos que contenham tabelas Markdown (separador padrão ou 3 ou mais barras verticais). Quando detectadas, converter o Markdown para HTML usando a extensão de tabelas. Adicionar testes abrangentes que cubram todos os casos de detecção.
… abstract Mover a responsabilidade de remover tags HTML dos textos de publicação para os notification senders, preservando o HTML no campo `abstract` retornado pelo `transform_search_results`. - Adicionar função `remove_html_tags` em `isender.py` (com normalização de espaços e unescape de entidades HTML), substituindo as implementações duplicadas em `SlackSender`, `DiscordSender` e `NotificationSender` - Remover chamada de `_remove_html_tags` do pipeline do `TextDictHandler`, permitindo que o `abstract` preserve tabelas HTML e formatação original - Adicionar estilo CSS para tabelas no template de e-mail `dou_template.html` - Adicionar método `_prettier_html` ao `TextDictHandler` para formatação de HTML (a ser utilizado em etapas futuras do pipeline) - Atualizar testes de `test_transform_search_results` para refletir o novo comportamento (abstract com HTML/texto bruto) - Remover testes de `_remove_html_tags` das classes de sender (método removido)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_has_markdown_tablestatic method toTextDictHandlerthat detects markdown tables via standard separator (---|---|---) or lines with 3+ pipesmarkdownlibrary with thetablesextensionTest plan
test_has_markdown_tablepass🤖 Generated with Claude Code