pbek / qmarkdowntextedit Goto Github PK
View Code? Open in Web Editor NEWA C++ Qt QPlainTextEdit widget with markdown highlighting support and a lot of other extras
Home Page: http://www.qownnotes.org
License: MIT License
A C++ Qt QPlainTextEdit widget with markdown highlighting support and a lot of other extras
Home Page: http://www.qownnotes.org
License: MIT License
If I write Bold&italics, the result is incorrect.
***Bold&italics***
Hey,
I've been using the QTextEdit example that comes with Qt and saw that it supports lists withe nice rendering and handling of checkboxes and other items.
Do you think we can bring it into QMarkdownTextEdit?
Here's the example:
https://doc.qt.io/qt-6/qtwidgets-richtext-textedit-example.html
Would it be a good idea if I implemented highlighting in headings?
My idea is to highlight them normally, like any link, but we don't highlight the title itself. Here is an example:
The yellow parts will be highlighted with masked syntax (like the #) and the other part will not be highlighted at all.
@tim-gromeyer, unfortunately 53c4c598 of #188 did break something else too:
wget http://google.com
http://google.com
is now highlighted as link, but it shouldn't.
Originally posted by @pbek in #188 (comment)
👎 error: LNK1104: cann't open file “QMarkdownTextedit.lib”
Hi,
I want the text with format is: ssBoldItalicss by added: ss***BoldItalic***ss
But cannot, it only works when added space before and after: ss BoldItalic ss
Currently the text editor in QOwnNotes understands and marks the tables as code
. This is an enhancement request to also auto format the table when user inputs a separator |
.
Example:
| header 1 | header 2 |
| content abc
|
after abc|
after header 1 auto indented itself| header 1 | header 2 |
| content abc |
This makes the content more readable.
Hi @pbek,
I would like to use the markdownhighlighter class in a project and I saw that in the file headers the license is set to GPLv2, while the project is under MIT license.
Can you please clarify which one is the valid license?
thanks a lot in advance,
Johannes
How can I zoom in and out with as little code as possible? MarkdownHiglighter
uses a fixed font, so QPlainTextEdit
's zoom functions can't be used
Example:
.... Headline
======
====
still gets highlighted as headline
Thanks for creating this very wonderful effective control for Qt.
I am an avid user of the QOwnNotes and a Forth enthusiast.
While adding Forth code, I found that there is no highlighting support.
I wish to request your kind help regarding the same.
In line with this, I have taken a fork and placed in my changes.
Initially, the gforth
words are added as the keywords.
There is also addition of special filter functions to help with comment highlighting.
This would be the first time I am trying to contribute to a project.
Please guide me and help me correct my mistakes.
@tim-gromeyer, your last fix from #200 for #199 broke links in lists starting with at least 4 spaces!
- <https://www.zigbee2mqtt.io>
- [ ] [Some link](https://www.amazon.de)
@Waqar144, do you think you can add highlighting support for numbered list checkboxes like 1. [ ]
or 25. [x]
too in MarkdownHighlighter::highlightLists
?
Hi, @pbek!
Is there an option to disable the behaviour of ---
or ===
creating sub headlines?
Or at least/also an option just to disable the background highlighting of these?
Thanks!
I can see the license on the repo is listed as MIT however, when looking in the files it states the license is GPL:
/*
* Copyright (c) 2014-2023 Patrizio Bekerle -- <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
*/
Is it possible to confirm which license is to be taken in consideration when using these files?
Danke
Hi,
since https://github.com/Fmstrat/ownnote isn't really maintained anymore I'm looking for a new notes editor for nextcloud. Unfortunately, I'm a big fan of WYSIWYG editors - thats whats stopping me to switch to e.g. notes for nextcloud.
I could live with a "normal" md editor in the web (since I'm only editing offline anyways) but under Win I would really love to use a WYSIWYG editor. Had a look at your code but my c++ is a bit rusty :-) So before digging deeper: Do you see any chance to be able to replace the current editor with another one? (not even sure if there currently is such a thing as a WYSIWYG editor in c++...).
Thanks,
Thomas
Characters such as:
* ` _ " '
don't get auto removed correctly sometimes on pressing backspace.
To fix this we need to determine whether the character being removed is an 'opening' or 'closing' character.
Note: Looking backward for these characters is temporarily removed until proper solution is implemented.
Note: Commonmark rules for some characters might not completely apply because we are removing only one character at a time. Consider **bold**
, we need to handle this in a way that removal of first asterisk results in the removal of third asterisk.
When -DQT_NO_CAST_FROM_ASCII
is defined, you cant call QChar(' ')
(char) and QString("String")
(const char*).
To avoid the QChar error we could use QChar(u' ')
but this requires Qt >= 5.10.
For QString we could use QStringLiteral
.
I created a issue because i don't want to create a pull request that requires Qt 5.10 without having your OK.
Hi, I have used QmarkDownTextEdit in one of my utility, am wondering if this can be used just to show the parsed output in QTextBrowser, etc.
Right now it is showing output with markdown syntax in place.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.