You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@
32
32
- Fix a bug where the results of the `JSON` function in sqlite would be interpreted as a string instead of a json object.
33
33
- Fix a bug where the `sqlpage.environment_variable` function would return an error if the environment variable was not set. Now it returns `null` instead.
34
34
-Update ApexCharts to [v4.3.0](https://github.com/apexcharts/apexcharts.js/releases/tag/v4.3.0).
35
+
- New `article` property in the text component to display textin a more readable, article-like format.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
141
141
('html', 'Raw html code to include on the page. Don''t use that if you are not sure what you are doing, it may have security implications.', 'TEXT', TRUE, TRUE),
142
142
('contents', 'A top-level paragraph of text to display, without any formatting, without having to make additional queries.', 'TEXT', TRUE, TRUE),
143
143
('contents_md', 'Rich text in the markdown format. Among others, this allows you to write bold text using **bold**, italics using *italics*, and links using [text](https://example.com).', 'TEXT', TRUE, TRUE),
144
+
('article', 'Makes long texts more readable by increasing the line height, adding margins, using a serif font, and decorating the initial letter.', 'BOOLEAN', TRUE, TRUE),
144
145
-- item level
145
146
('contents', 'A span of text to display', 'TEXT', FALSE, FALSE),
146
147
('contents_md', 'Rich text in the markdown format. Among others, this allows you to write bold text using **bold**, italics using *italics*, and links using [text](https://example.com).', 'TEXT', FALSE, TRUE),
@@ -156,7 +157,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
156
157
157
158
INSERT INTO example(component, description, properties) VALUES
158
159
('text', 'Rendering a simple text paragraph.', json('[{"component":"text", "contents":"Hello, world ! <3"}]')),
159
-
('text', 'Rendering rich text using markdown', json('[{"component":"text", "contents_md":"\n'||
160
+
('text', 'Rendering rich text using markdown', json('[{"component":"text", "article": true, "contents_md":"\n'||
160
161
'# Markdown in SQLPage\n\n'||
161
162
'## Simple formatting\n\n'||
162
163
'SQLPage supports only plain text as column values, but markdown allows easily adding **bold**, *italics*, [external links](https://github.com/sqlpage/SQLPage), [links to other pages](/index.sql) and [intra-page links](#my-paragraph). \n\n'||
0 commit comments