New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tables in Markdown editor #78
Comments
Which table syntax are we talking of? |
Hm, maybe if a line starts and ends with an |
It would be enough if your parser doesn't support multiline. I think the better test for tables would be search for sequential lines with same count of |
The parser is generated from a lexer of PEG Markdown Highlight. If you can come up with a lexer statement that works, I will integrate it 😸 |
When you use PEG Markdown: there's PEG MultiMarkdown which includes table syntax already. |
@DivineDominion is there a Qt implementation for it? |
I was converting some old tables to markdown and it has not been easy. I had to add code tags to edit table in monospace. Then delete code tags for rendering. And all that many times. I think that highlighter should put to monospace anything between Another issue is that rendered tables have no grid lines. I find it hard to read wide tables without a grid. That looks like a css thing, haven't worked out that yet. |
It will be easier when QOwnNotes would use a fully fledged browser component for previewing (which doesn't work right now because it would break Debian 8.0 support). But the disadvantage would be the increased ram consumption... |
I'm not really looking forward to having fully fledged browser in the app. It's not the RAM that makes me unsure that it's the good path but the responsiveness of the app. All "browser inside" apps I saw lacked it. Like that Typora thing some user mentioned - browser and fancy JS stuff allows many smart UI features, but it's loading too slow for a minimalistic editor and scrolling is lagging for half a second with a big document. No feature will make me use plain text editor that has scrolling lagging. |
16.11.15
feedback is welcome, @elnull, @DivineDominion, @Maboroshy, @jd666 |
First impressions:
|
Also |
Links without syntax like |
Thank you for your feedback, @Maboroshy! I'll see what I can do. |
Actually it even went two steps down-steam :) I fixed now all of it and more in 16.11.16. |
16.11.16
|
There now is a new release, could you please test it and report if the new features work for you? |
@Maboroshy, sourceforge has problems, you might need to wait for your AUR release... :/ |
My bad. For some reason I thought that qmarkdowntextedit was some Qt thing. After the last fix finding new bugs is a challenge. I accept it though. 😎 |
nah, I created it for QOwnNotes and made it a library for others to use...
You always do. ;) |
Ok then, here we go.
is not highlighted as a link, same for image. Yet it's valid and does render. I'm still to learn QRegularExpression but some |
Thank you for testing, I will take a look at 1) and 2). I will not take care of 3), that would be much too bothersome with QSyntaxHighlighter. |
16.11.18
|
16.11.18
There now is a new release, could you please test it and report if the new features work for you? |
Looks like everything working now, except 3 of course. I tuned Bash-note to correct multiline links from converted web pages anyway. Some legacy stuff left. |
Great, thank you! |
16.12.0
|
There now is a new release, could you please test it and report if the new features work for you? |
Is it possible to add tables detection to editor's parser and output them with monospace font?
The text was updated successfully, but these errors were encountered: