From e5afab1e17727a0efdfc25931046744f549b3cca Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Fri, 20 Jul 2018 12:29:44 +0200 Subject: [PATCH 1/5] math highlighting and org-mode compat --- modules/lang/markdown/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 089786093..7be9cf9b8 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -12,7 +12,9 @@ markdown-make-gfm-checkboxes-buttons t markdown-gfm-additional-languages '("sh") markdown-fontify-code-blocks-natively t - markdown-hide-urls nil) ; trigger with `markdown-toggle-url-hiding' + markdown-hide-urls nil ; trigger with `markdown-toggle-url-hiding' + markdown-enable-math ; syntax highlighting for latex fragments + markdown-gfm-uppercase-checkbox t ) ; compatibility with org-mode :config (defun +markdown|set-fill-column-and-line-spacing () From 75278663cced23e2e33e6c18329148fa5bdb62da Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Fri, 20 Jul 2018 13:48:02 +0200 Subject: [PATCH 2/5] header scaling --- modules/lang/markdown/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 7be9cf9b8..8ab8751a9 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -14,7 +14,8 @@ markdown-fontify-code-blocks-natively t markdown-hide-urls nil ; trigger with `markdown-toggle-url-hiding' markdown-enable-math ; syntax highlighting for latex fragments - markdown-gfm-uppercase-checkbox t ) ; compatibility with org-mode + markdown-gfm-uppercase-checkbox t ; for compat with org-mode + markdown-header-scaling t) ; fontify section headers :config (defun +markdown|set-fill-column-and-line-spacing () From ccd6ceab8610a9174f27a0601cebcf6c08d575e9 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Fri, 20 Jul 2018 13:54:23 +0200 Subject: [PATCH 3/5] fix typo --- modules/lang/markdown/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 8ab8751a9..2f03b8005 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -13,7 +13,7 @@ markdown-gfm-additional-languages '("sh") markdown-fontify-code-blocks-natively t markdown-hide-urls nil ; trigger with `markdown-toggle-url-hiding' - markdown-enable-math ; syntax highlighting for latex fragments + markdown-enable-math t; syntax highlighting for latex fragments markdown-gfm-uppercase-checkbox t ; for compat with org-mode markdown-header-scaling t) ; fontify section headers From 8b00a208cf7d9f2d2ab36174abccf18971919f27 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Fri, 20 Jul 2018 13:56:04 +0200 Subject: [PATCH 4/5] typo --- modules/lang/markdown/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 2f03b8005..b4ae34c63 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -13,7 +13,7 @@ markdown-gfm-additional-languages '("sh") markdown-fontify-code-blocks-natively t markdown-hide-urls nil ; trigger with `markdown-toggle-url-hiding' - markdown-enable-math t; syntax highlighting for latex fragments + markdown-enable-math t ; syntax highlighting for latex fragments markdown-gfm-uppercase-checkbox t ; for compat with org-mode markdown-header-scaling t) ; fontify section headers From faf59ff2a9a0daf4fe8d875099711e1326f0d8c8 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Fri, 20 Jul 2018 14:23:17 +0200 Subject: [PATCH 5/5] undo header scaling --- modules/lang/markdown/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index b4ae34c63..11d4d3c03 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -14,8 +14,7 @@ markdown-fontify-code-blocks-natively t markdown-hide-urls nil ; trigger with `markdown-toggle-url-hiding' markdown-enable-math t ; syntax highlighting for latex fragments - markdown-gfm-uppercase-checkbox t ; for compat with org-mode - markdown-header-scaling t) ; fontify section headers + markdown-gfm-uppercase-checkbox t) ; for compat with org-mode :config (defun +markdown|set-fill-column-and-line-spacing ()