Fossil SCM

Do not duplicate the title for markdown-formatted wiki.

drh 2015-02-22 11:14 trunk
Commit 2656695db13d98305c344ddf73068085d898cda5
1 file changed +2
+2
--- src/wiki.c
+++ src/wiki.c
@@ -147,13 +147,15 @@
147147
wiki_convert(pWiki, 0, 0);
148148
}else if( fossil_strcmp(zMimetype, "text/x-markdown")==0 ){
149149
Blob title = BLOB_INITIALIZER;
150150
Blob tail = BLOB_INITIALIZER;
151151
markdown_to_html(pWiki, &title, &tail);
152
+#if 0
152153
if( blob_size(&title)>0 ){
153154
@ <h1>%s(blob_str(&title))</h1>
154155
}
156
+#endif
155157
@ %s(blob_str(&tail))
156158
blob_reset(&title);
157159
blob_reset(&tail);
158160
}else{
159161
@ <pre>
160162
--- src/wiki.c
+++ src/wiki.c
@@ -147,13 +147,15 @@
147 wiki_convert(pWiki, 0, 0);
148 }else if( fossil_strcmp(zMimetype, "text/x-markdown")==0 ){
149 Blob title = BLOB_INITIALIZER;
150 Blob tail = BLOB_INITIALIZER;
151 markdown_to_html(pWiki, &title, &tail);
 
152 if( blob_size(&title)>0 ){
153 @ <h1>%s(blob_str(&title))</h1>
154 }
 
155 @ %s(blob_str(&tail))
156 blob_reset(&title);
157 blob_reset(&tail);
158 }else{
159 @ <pre>
160
--- src/wiki.c
+++ src/wiki.c
@@ -147,13 +147,15 @@
147 wiki_convert(pWiki, 0, 0);
148 }else if( fossil_strcmp(zMimetype, "text/x-markdown")==0 ){
149 Blob title = BLOB_INITIALIZER;
150 Blob tail = BLOB_INITIALIZER;
151 markdown_to_html(pWiki, &title, &tail);
152 #if 0
153 if( blob_size(&title)>0 ){
154 @ <h1>%s(blob_str(&title))</h1>
155 }
156 #endif
157 @ %s(blob_str(&tail))
158 blob_reset(&title);
159 blob_reset(&tail);
160 }else{
161 @ <pre>
162

Keyboard Shortcuts

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