Repository navigation
Conversation
MatejFrnka
requested changes
Nov 20, 2026
| // Leave fenced code and inline code untouched. Statements may span multiple lines. | ||
| // Adjacent statement elements form flowing prose, even when separated by blank lines. | ||
| const tokens = | ||
| /(^ {0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?^ {0,3}\2[^\S\n]*(?:\n|$))|(`+)[^`]*?\3|<statement\s+source\s*=\s*(?:"([^"]*)"|'([^']*)')\s*>([\s\S]*?)<\/statement\s*>(\s*(?=<statement\s+source\s*=))?/gm |
Collaborator
There was a problem hiding this comment.
I think single and double brackets could be maybe merged into a single match group
Collaborator
There was a problem hiding this comment.
also, I would consider removing the condition to ignore stuff inside codeblocks. I think it makes sence to replace there as well. It would also simplify.
Collaborator
Author
There was a problem hiding this comment.
Do you mean the quotes? I'd keep them separate. Using a backreference would make the regex less readable. We would need to check if the first quote was ' or ". The separate alternatives "..." and '...' are clear at a glance.
MatejFrnka
reviewed
Nov 20, 2026
| - Consolidate related information that is scattered across sections. | ||
| - Remove or shorten redundant mentions when the same information appears in multiple places (keep it in the most appropriate location). | ||
| - Improve flow and logical structure so each section focuses on its intended theme. | ||
| - Rewrite questionnaire-like bullets and isolated fragments into connected, complete sentences in coherent paragraphs. Organize by topic rather than by source or answer order. Do not leave one bullet, line, or paragraph per fact. Use lists or tables only for genuine enumerations or comparisons, or where explicitly required by the section structure. |
Collaborator
Collaborator
Author
There was a problem hiding this comment.
I aimed to find the best balance between the flow of the text and source grouping
hranasit
force-pushed
the
feature/216-add-sources-to-statements-ai-part
branch
from
November 24, 2026 15:59
b9d2df9 to
833169a
Compare
hranasit
force-pushed
the
feature/216-add-sources-to-statements-ai-part
branch
from
November 25, 2026 15:22
833169a to
d31290d
Compare
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.

closes #216
closes #217
closes #215