[gnome-builder] markdown: don't escape content in HTML output.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] markdown: don't escape content in HTML output.
- Date: Sat, 13 Sep 2014 01:22:17 +0000 (UTC)
commit bfee1c3cc732f9dd07f4ac32fb324ae0acf9c11a
Author: Christian Hergert <christian hergert me>
Date: Fri Sep 12 18:22:12 2014 -0700
markdown: don't escape content in HTML output.
src/markdown/gb-markdown-preview.c | 2 ++
src/markdown/gs-markdown.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/markdown/gb-markdown-preview.c b/src/markdown/gb-markdown-preview.c
index ddee3ee..6bf1c8a 100644
--- a/src/markdown/gb-markdown-preview.c
+++ b/src/markdown/gb-markdown-preview.c
@@ -111,6 +111,8 @@ gb_markdown_preview_reload (GbMarkdownPreview *preview)
text = gtk_text_buffer_get_text (priv->buffer, &begin, &end, TRUE);
markdown = gs_markdown_new (GS_MARKDOWN_OUTPUT_HTML);
+ gs_markdown_set_autolinkify (markdown, TRUE);
+ gs_markdown_set_escape (markdown, FALSE);
if (!(html = gs_markdown_parse (markdown, text)))
{
diff --git a/src/markdown/gs-markdown.c b/src/markdown/gs-markdown.c
index 1b7202e..b57bfa0 100644
--- a/src/markdown/gs-markdown.c
+++ b/src/markdown/gs-markdown.c
@@ -939,7 +939,7 @@ gs_markdown_set_output_kind (GsMarkdown *self, GsMarkdownOutputKind output)
priv->tags.h3_end = "</h3>";
priv->tags.bullet_start = "<li>";
priv->tags.bullet_end = "</li>";
- priv->tags.rule = "<hr>";
+ priv->tags.rule = "<hr/>";
priv->escape = TRUE;
priv->autolinkify = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]