Add Markdown rendering to AI Chat#13194
Conversation
Looks very nice. Side track: "Summary" is a very different AI function, therefore @InAnYan put another tab for "Summary". -- For instance, for large PDFs, JabRef splits into chuncks and summarizes chunks. |
koppor
left a comment
There was a problem hiding this comment.
Only a small comment.
Are spaces correctly handled for the getTextFlowContent()?
I assume, adding test cases is too hard here?
This comment was marked as resolved.
This comment was marked as resolved.
InAnYan
left a comment
There was a problem hiding this comment.
Unfortunately, I had to request one small change
| /** | ||
| * A TextFlow that allows text selection and copying. | ||
| */ | ||
| public class SelectableTextFlow extends TextFlow { |
There was a problem hiding this comment.
OMG, Yubo, is it possible to submit this code to some library? GemsFX maybe? This is a very useful piece of code
There was a problem hiding this comment.
+1 for GemsFX. If the maintainer Dirk doesn't want it, then ControlsFX
So after actually switch to Arch Linux and run testcases over there (of course that was not needed at all to come up with this conclusion looking at how I butchered the Markdown AST), is that we currently don't handle whitespace perfectly, if at all.
I think my new attempt would be trying to keep track a bit more metadata in MarkdownTextflow and basically override |
|
@Yubo-Cao Please resolve conversations after you push the commits resolving them, not before |
|
If things get too convoluted, Note: |
Another handy resource: https://ohshitgit.com/ |
However, JabRef mainatinaers don't like force pushes - only in rare emergency cases ^^ I always direct to https://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/ -- then, the git commands should be more understandable. |
Maybe MWE using a JUnit test... |
subhramit
left a comment
There was a problem hiding this comment.
Green from me.
To summarize, TODOs:
- Submission of useful jfx snippet to GemsFX/ControlsFX
- MWE reproduction and reporting to Flexmark
- File known issues in JabRef
Current:
Address Ruslan's comment on the changelog entry.
Rest seems good to go, thank you for such wonderful work, Yubo.
|
OMG, maybe it is something wrong with my machine, if Yubo cannot reproduce my issues 🤣 Nice color change |
|
Can you do a screenshot with dark theme too please? |
I reverted CSL so that the assigned contributor has time to work on it. |
|
@trag-bot didn't find any issues in the code! ✅✨ |




Closes #12234 (partially)
See this: https://drive.google.com/file/d/1VOvWBLP5E9I_sLXd7RpShfXoP0ttg0JZ/view?usp=sharing for a quick demo. Ctrl+C is supported as a part of this PR as well.
Before:

After:



Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user)