Fossil SCM

Quick fix to many of the formatting problems associated with the recent attempts at making the Markdown output "safer". More work to be done, but this check-in will at least get most of the website working again. I hope.

drh 2020-06-01 22:24 trunk
Commit c2875cb444676c9d5c40e6e7e723312ea8f86f655c08cdbdcb35426cfd7118bf
1 file changed +1 -2
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -299,12 +299,11 @@
299299
300300
301301
/* HTML span tags */
302302
303303
static int html_raw_span(struct Blob *ob, struct Blob *text, void *opaque){
304
- /* If the document begins with a <h1> markup, take that as the header. */
305
- BLOB_APPEND_BLOB(ob, text);
304
+ blob_append(ob, blob_buffer(text), blob_size(text));
306305
return 1;
307306
}
308307
309308
static int html_autolink(
310309
struct Blob *ob,
311310
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -299,12 +299,11 @@
299
300
301 /* HTML span tags */
302
303 static int html_raw_span(struct Blob *ob, struct Blob *text, void *opaque){
304 /* If the document begins with a <h1> markup, take that as the header. */
305 BLOB_APPEND_BLOB(ob, text);
306 return 1;
307 }
308
309 static int html_autolink(
310 struct Blob *ob,
311
--- src/markdown_html.c
+++ src/markdown_html.c
@@ -299,12 +299,11 @@
299
300
301 /* HTML span tags */
302
303 static int html_raw_span(struct Blob *ob, struct Blob *text, void *opaque){
304 blob_append(ob, blob_buffer(text), blob_size(text));
 
305 return 1;
306 }
307
308 static int html_autolink(
309 struct Blob *ob,
310

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button