Skip to content

Commit 74ae0e4

Browse files
committed
Merge branch 'hotfix/v0.11.2'
2 parents 7acf03f + 43146ac commit 74ae0e4

21 files changed

+2587
-493
lines changed

CuteMarkEd.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
33
<?define ManufacturerName="CuteMarkEd Project"?>
44
<?define ProductName="CuteMarkEd"?>
5-
<?define ProductVersion="0.11.1"?>
5+
<?define ProductVersion="0.11.2"?>
66
<Product Name="$(var.ProductName)"
77
Id="*"
88
UpgradeCode="335156FC-CB7F-4357-98D4-B5519E66402B"

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,31 @@ A Qt-based, free and open source markdown editor with live HTML preview, math ex
88

99
### DOWNLOAD
1010

11-
[Sources](https://github.com/cloose/CuteMarkEd/archive/v0.11.1.tar.gz)
12-
[MS Windows (Installer)](http://dl.bintray.com/cloose/CuteMarkEd/cutemarked-0.11.1.msi)
13-
[MS Windows (ZIP file)](http://dl.bintray.com/cloose/CuteMarkEd/cutemarked-0.11.1.zip)
14-
[OpenSUSE 13.1 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
11+
[Sources](https://github.com/cloose/CuteMarkEd/archive/v0.11.2.tar.gz)
12+
[MS Windows (Installer)](http://dl.bintray.com/cloose/CuteMarkEd/cutemarked-0.11.2.msi)
13+
[MS Windows (ZIP file)](http://dl.bintray.com/cloose/CuteMarkEd/cutemarked-0.11.2.zip)
14+
[OpenSUSE 13.2 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
1515
[Fedora 20 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
1616
[Fedora 21 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
17+
[Fedora 22 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
18+
[Fedora 23 (RPM)](https://build.opensuse.org/project/show?project=home%3Acloose1974)
1719

1820
### NEWS
1921

22+
#### Version 0.11.2
23+
24+
Improvements:
25+
26+
* `IMPROVED` Added Hungarian translation
27+
28+
Fixes:
29+
30+
* `FIXED` Editor pane jumping up and down during editing (#232)
31+
* `FIXED` Missing mermaid CSS for styling in preview (#241)
32+
* `FIXED` Correct order of HTML Preview/Source menu item (#242)
33+
* `FIXED` Retrieval of last used style on application start on Linux (#257)
34+
* `FIXED` Crash when switching between markdown converters (#260)
35+
2036
#### Version 0.11.1
2137

2238
Improvements:

app-static/converter/hoedownmarkdownconverter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ QString HoedownMarkdownConverter::renderAsHtml(MarkdownDocument *document)
8888
if (document) {
8989
HoedownMarkdownDocument *doc = dynamic_cast<HoedownMarkdownDocument*>(document);
9090

91-
if (doc->document()) {
91+
if (doc && doc->document()) {
9292
hoedown_buffer *in = doc->document();
9393
hoedown_buffer *out = hoedown_buffer_new(64);
9494

app-static/converter/revealmarkdownconverter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ QString RevealMarkdownConverter::renderAsHtml(MarkdownDocument *document)
3030

3131
if (document) {
3232
RevealMarkdownDocument *doc = dynamic_cast<RevealMarkdownDocument*>(document);
33-
html = doc->markdownText;
33+
if (doc) {
34+
html = doc->markdownText;
35+
}
3436
}
3537

3638
return html;

app-static/htmlviewsynchronizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ void HtmlViewSynchronizer::webViewScrolled()
4646
int value = m_webView->page()->mainFrame()->scrollBarValue(Qt::Vertical);
4747

4848
m_editor->verticalScrollBar()->setValue(qRound(value * factor));
49+
50+
// remember new vertical scrollbar position of markdown editor
51+
rememberScrollBarPos();
4952
}
5053

5154
void HtmlViewSynchronizer::scrollValueChanged(int value)

app-static/template/htmltemplate.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ QString HtmlTemplate::buildHtmlHeader(RenderOptions options) const
108108

109109
// add mermaid.js script to HTML header
110110
if (options.testFlag(Template::DiagramSupport)) {
111+
header += "<link rel=\"stylesheet\" href=\"qrc:/scripts/mermaid/mermaid.css\">\n";
111112
header += "<script src=\"qrc:/scripts/mermaid/mermaid.full.min.js\"></script>\n";
112113
}
113114

app/aboutdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "aboutdialog.h"
1818
#include "ui_aboutdialog.h"
1919

20-
static const QString COPYRIGHT = QStringLiteral("Copyright 2013-2015 Christian Loose");
20+
static const QString COPYRIGHT = QStringLiteral("Copyright 2013-2016 Christian Loose");
2121
static const QString HOMEPAGE = QStringLiteral("<a href=\"http://cloose.github.io/CuteMarkEd\">http://cloose.github.io/CuteMarkEd</a>");
2222

2323
AboutDialog::AboutDialog(QWidget *parent) :

app/aboutdialog.ui

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
110110
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
111111
p, li { white-space: pre-wrap; }
112-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
112+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
113113
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt; font-weight:600;&quot;&gt;Christian Loose (cloose)&lt;/span&gt;&lt;/p&gt;
114114
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Creator and maintainer&lt;/span&gt;&lt;/p&gt;
115115
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
@@ -163,6 +163,12 @@ p, li { white-space: pre-wrap; }
163163
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
164164
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt; font-weight:600;&quot;&gt;Mljjlm&lt;/span&gt;&lt;/p&gt;
165165
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Danish translation&lt;/span&gt;&lt;/p&gt;
166+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
167+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt; font-weight:600;&quot;&gt;Napcok&lt;/span&gt;&lt;/p&gt;
168+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Polish translation&lt;/span&gt;&lt;/p&gt;
169+
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
170+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt; font-weight:600;&quot;&gt;Neran93&lt;/span&gt;&lt;/p&gt;
171+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Hungarian translation&lt;/span&gt;&lt;/p&gt;
166172
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
167173
</property>
168174
</widget>
@@ -180,7 +186,7 @@ p, li { white-space: pre-wrap; }
180186
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
181187
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
182188
p, li { white-space: pre-wrap; }
183-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
189+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
184190
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt; font-weight:600;&quot;&gt;Qt&lt;/span&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; (LGPL v2.1)&lt;/span&gt;&lt;/p&gt;
185191
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://qt-project.org/&quot;&gt;&lt;span style=&quot; font-size:8pt; text-decoration: underline; color:#0000ff;&quot;&gt;http://qt.io/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
186192
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

app/app.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ TRANSLATIONS += \
2525
translations/cutemarked_el.ts \
2626
translations/cutemarked_es.ts \
2727
translations/cutemarked_fr.ts \
28+
translations/cutemarked_hu_HU.ts \
2829
translations/cutemarked_id.ts \
2930
translations/cutemarked_ja.ts \
31+
translations/cutemarked_pl.ts \
3032
translations/cutemarked_pt_BR.ts \
3133
translations/cutemarked_ru.ts \
3234
translations/cutemarked_zh_CN.ts
@@ -121,8 +123,11 @@ OTHER_FILES += \
121123
syntax_da.html \
122124
syntax_de.html \
123125
syntax_el.html \
126+
syntax_es.html \
127+
syntax_hu_HU.html \
124128
syntax_id.html \
125129
syntax_ja.html \
130+
syntax_pt_BR.html \
126131
syntax_zh_CN.html \
127132
styles/solarized-dark.css \
128133
styles/markdown.css \

app/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
5656
app.setOrganizationName("CuteMarkEd Project");
5757
app.setApplicationName("CuteMarkEd");
5858
app.setApplicationDisplayName("CuteMarkEd");
59-
app.setApplicationVersion("0.11.1");
59+
app.setApplicationVersion("0.11.2");
6060

6161
#ifdef Q_OS_WIN
6262
QStringList fileTypes;

0 commit comments

Comments
 (0)