Tijdlijn-detectielus extraheren uit 5 markdown-conversie services #2075
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#2075
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleem
Dezelfde tijdlijn-detectielus staat in vijf markdown-naar-format converters. De eerste ~20 regels zijn identiek; alleen de output-rendering verschilt per formaat.
De gedeelde structuur:
analyzeMarkedTimelineaanroepenBetrokken bestanden
services/docx/markdown_to_docx.dart_protectDocumentTimelinesservices/odt/markdown_to_odt.dart_protectDocumentTimelinesservices/epub/markdown_to_xhtml.dart_protectDocumentTimelinesservices/latex/markdown_to_latex.dart_protectDocumentTimelinesservices/pdf/markdown_to_pdf_blocks.dart_protectTimelinesVoorstel
Extraheer de detectielus naar een gedeelde functie die een callback voor formaat-specifieke rendering accepteert. Elke converter geeft alleen het renderwerk mee.
Schatting
~40-50 regels verwijderbaar.
Labels
duplicate, enhancement