Skip to content

Commit 3c1b61f

Browse files
committed
Release v1.1.6 - Render form description as markdown
- Fix #63: form description on the public response page now renders as markdown instead of plain text — headings, lists, links and inline formatting display correctly - Add explicit typography styles for h1-h6, lists, links, code, blockquotes in the in-editor preview, section descriptions and the form description so they survive Nextcloud's CSS resets
1 parent e890c0e commit 3c1b61f

7 files changed

Lines changed: 53 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to FormVox will be documented in this file.
44

5+
## [1.1.6] - 2026-05-05
6+
7+
### Fixed
8+
- **Form description rendered as plain text on the public form** — The form description on the public response page now renders as markdown instead of literal text with the raw `#`/`*` characters and collapsed newlines. Headings, lists, links, code, and blockquotes in the form description, section descriptions, and the in-editor markdown preview all render with proper visual styling. ([#63](https://github.com/nextcloud/formvox/issues/63))
9+
510
## [1.1.5] - 2026-05-04
611

712
### Added

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* Expense declarations
3636
* Data collection with privacy requirements
3737
]]></description>
38-
<version>1.1.5</version>
38+
<version>1.1.6</version>
3939
<licence>agpl</licence>
4040
<author mail="info@voxcommons.com">Sam Ditmeijer</author>
4141
<author mail="info@voxcommons.com">Rik Dekker</author>

js/formvox-editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/formvox-public.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formvox",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "File-based forms and polls for Nextcloud",
55
"scripts": {
66
"build": "webpack",

src/components/MarkdownEditor.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,21 @@ export default {
281281
.editor-preview, .editor-preview-side {
282282
background: var(--color-main-background);
283283
color: var(--color-main-text);
284+
padding: 12px 16px;
285+
286+
h1 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0 0.3em; }
287+
h2 { font-size: 1.35em; font-weight: 700; margin: 0.5em 0 0.3em; }
288+
h3 { font-size: 1.15em; font-weight: 700; margin: 0.5em 0 0.3em; }
289+
h4, h5, h6 { font-weight: 700; margin: 0.5em 0 0.3em; }
290+
p { margin: 0.4em 0; }
291+
ul { list-style: disc; padding-left: 1.5em; margin: 0.4em 0; }
292+
ol { list-style: decimal; padding-left: 1.5em; margin: 0.4em 0; }
293+
li { margin: 0.2em 0; }
294+
a { color: var(--color-primary-element); text-decoration: underline; }
295+
code { background: var(--color-background-hover); padding: 2px 4px; border-radius: 3px; font-family: monospace; }
296+
pre { background: var(--color-background-hover); padding: 8px; border-radius: 4px; overflow-x: auto; }
297+
blockquote { border-left: 3px solid var(--color-border); padding-left: 12px; color: var(--color-text-maxcontrast); margin: 0.4em 0; }
298+
img { max-width: 100%; height: auto; }
284299
}
285300
}
286301
}

src/views/Respond.vue

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
<div class="form-header">
7070
<h1>{{ form.title }}</h1>
71-
<p v-if="form.description" class="form-description">{{ form.description }}</p>
71+
<div v-if="form.description" class="form-description" v-html="renderMarkdown(form.description)" />
7272
</div>
7373

7474
<div
@@ -1153,9 +1153,37 @@ export default {
11531153
color: var(--color-text-maxcontrast);
11541154
font-size: 16px;
11551155
margin: 0;
1156+
1157+
h1 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0 0.3em; color: var(--color-main-text); }
1158+
h2 { font-size: 1.35em; font-weight: 700; margin: 0.5em 0 0.3em; color: var(--color-main-text); }
1159+
h3 { font-size: 1.15em; font-weight: 700; margin: 0.5em 0 0.3em; color: var(--color-main-text); }
1160+
h4, h5, h6 { font-weight: 700; margin: 0.5em 0 0.3em; color: var(--color-main-text); }
1161+
p { margin: 0.4em 0; }
1162+
ul { list-style: disc; padding-left: 1.5em; margin: 0.4em 0; }
1163+
ol { list-style: decimal; padding-left: 1.5em; margin: 0.4em 0; }
1164+
li { margin: 0.2em 0; }
1165+
a { color: var(--color-primary-element); text-decoration: underline; }
1166+
code { background: var(--color-background-hover); padding: 2px 4px; border-radius: 3px; font-family: monospace; }
1167+
pre { background: var(--color-background-hover); padding: 8px; border-radius: 4px; overflow-x: auto; }
1168+
blockquote { border-left: 3px solid var(--color-border); padding-left: 12px; margin: 0.4em 0; }
11561169
}
11571170
}
11581171
1172+
.section-description {
1173+
h1 { font-size: 1.6em; font-weight: 700; margin: 0.5em 0 0.3em; }
1174+
h2 { font-size: 1.35em; font-weight: 700; margin: 0.5em 0 0.3em; }
1175+
h3 { font-size: 1.15em; font-weight: 700; margin: 0.5em 0 0.3em; }
1176+
h4, h5, h6 { font-weight: 700; margin: 0.5em 0 0.3em; }
1177+
p { margin: 0.4em 0; }
1178+
ul { list-style: disc; padding-left: 1.5em; margin: 0.4em 0; }
1179+
ol { list-style: decimal; padding-left: 1.5em; margin: 0.4em 0; }
1180+
li { margin: 0.2em 0; }
1181+
a { color: var(--color-primary-element); text-decoration: underline; }
1182+
code { background: var(--color-background-hover); padding: 2px 4px; border-radius: 3px; font-family: monospace; }
1183+
pre { background: var(--color-background-hover); padding: 8px; border-radius: 4px; overflow-x: auto; }
1184+
blockquote { border-left: 3px solid var(--color-border); padding-left: 12px; margin: 0.4em 0; }
1185+
}
1186+
11591187
.page-indicator {
11601188
text-align: center;
11611189
color: var(--color-text-maxcontrast);

0 commit comments

Comments
 (0)