From e2d1035924a06072cc938e25609ce68d0808b6d3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 28 Oct 2021 16:36:09 +0300 Subject: Make HTML renderer not to use empty attribute syntax --- libcmark-gfm/README-DEV | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'libcmark-gfm/README-DEV') diff --git a/libcmark-gfm/README-DEV b/libcmark-gfm/README-DEV index dbf398b..94a742b 100644 --- a/libcmark-gfm/README-DEV +++ b/libcmark-gfm/README-DEV @@ -4,11 +4,25 @@ version. See ../README-DEV for general notes on cmark-gfm packaging. Symlink the required upstream files and directories into libcmark-gfm/: -$ ln -s ../../upstream/src libcmark-gfm +$ mkdir -p libcmark-gfm/src +$ pushd libcmark-gfm/src +$ ln -s ../../../upstream/src/*.{c,h,inc,in} ./ -Note that we unable to generate cmark-gfm_version.h directly from the template -as it is included as "cmark-gfm_version.h" in upstream's source code, which -makes impossible using the header-generating machinery. That's why we create +Also patch the HTML renderer not to use the empty attribute syntax (see the +reported issue #245 for details): + +$ mv html.c html.c.orig +$ cp html.c.orig html.c +$ git apply fix-html-renderer.patch +$ popd + +Note that patches are produced by commands similar to the following: + +$ git diff >fix-html-renderer.patch + +We unable to generate cmark-gfm_version.h directly from the template, since it +is included as "cmark-gfm_version.h" in upstream's source code, which makes +impossible using the header-generating machinery. That's why we create libcmark-gfm/cmark-gfm_version.h that includes that we auto-generate from upstream's src/cmark-gfm_version.h.in. -- cgit v1.1