notes-up FTBFS as it is not compatible with discount 3

Description:

After the latest gcc update the build fails as the compiler is now detecting a pointer made from integer without a cast -Wint-conversion:

In file included from com.github.philip_scott.notes-up.p/src/Widgets/Viewer.c:35:
/usr/include/mkdio.h:78:19: note: expected ‘const char *’ but argument is of type ‘guint8 *’ {aka ‘unsigned char *’}
   78 | MMIOT *mkd_string(const char*,int,mkd_flag_t*); /* assemble input from a buffer */
      |                   ^~~~~~~~~~~
../Notes-up-2.0.6/src/Widgets/Viewer.vala:230:47: error: passing argument 3 of ‘mkd3_string’ makes pointer from integer without a cast [-Wint-conversion]
  230 |         var mkd = new Markdown.Document.from_string (processed_mk.data, 0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               int
/usr/include/mkdio.h:78:35: note: expected ‘mkd_flag_t *’ {aka ‘void *’} but argument is of type ‘int’
   78 | MMIOT *mkd_string(const char*,int,mkd_flag_t*); /* assemble input from a buffer */
      |                                   ^~~~~~~~~~~
../Notes-up-2.0.6/src/Widgets/Viewer.vala:231:20: error: passing argument 2 of ‘mkd3_compile’ makes pointer from integer without a cast [-Wint-conversion]
  231 |         mkd.compile (0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
      |                    |
      |                    int
/usr/include/mkdio.h:93:25: note: expected ‘mkd_flag_t *’ {aka ‘void *’} but argument is of type ‘int’
   93 | int mkd_compile(MMIOT*, mkd_flag_t*);

This is due to discount 3 converting a parameter from an enum to a pointer to an enum. The libmarkdown vala bindings do not appear to have been updated for discount 3. The patch below allows the build to succeed but could be completely wrong:

diff --git a/src/Widgets/Viewer.vala b/src/Widgets/Viewer.vala
index 736226a..b8a1bbb 100644
--- a/src/Widgets/Viewer.vala
+++ b/src/Widgets/Viewer.vala
@@ -225,10 +225,11 @@ public class ENotes.Viewer : WebKit.WebView {
 
     private string process (string raw_mk) {
         string processed_mk;
+        int flags = 0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000;
         process_frontmatter (raw_mk, out processed_mk);
                                                         //Extra Footnote + Autolink + ``` code + Extra def lists + keep style + LaTeX
-        var mkd = new Markdown.Document.from_string (processed_mk.data, 0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
-        mkd.compile (0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
+        var mkd = new Markdown.Document.from_string (processed_mk.data, &flags);
+        mkd.compile (&flags);
 
         string result;
         mkd.document (out result);
diff --git a/vapi/libmarkdown.vapi b/vapi/libmarkdown.vapi
index a6bf7e7..d6312a7 100644
--- a/vapi/libmarkdown.vapi
+++ b/vapi/libmarkdown.vapi
@@ -50,7 +50,7 @@ namespace Markdown
 		[CCode (cname = "mkd_in")]
 		public Document.from_in (GLib.FileStream file, DocumentFlags flags);
 		[CCode (cname = "mkd_string")]
-		public Document.from_string (uint8[] doc, DocumentFlags flags);
+		public Document.from_string (uint8[] doc, DocumentFlags * flags);
 
 		[CCode (cname = "gfm_in")]
 		public Document.from_gfm_in (GLib.FileStream file, DocumentFlags flags);
@@ -59,7 +59,7 @@ namespace Markdown
 
 		public void basename (string @base);
 
-		public bool compile (DocumentFlags flags);
+		public bool compile (DocumentFlags * flags);
 		public void cleanup ();
 
 		public int dump (GLib.FileStream file, DocumentFlags flags, string title);

Additional info:

Steps to reproduce:

$ pkgctl repo clone --protocol https notes-up
$ cd notes-up/
$ pkgctl build