 
 
 ############################################################################################################
-unless module.parent?
-  # @pdf_from_md 'texts/A-Permuted-Index-of-Chinese-Characters/index.md'
-  @pdf_from_md 'texts/demo'
-
-  # debug '©nL12s', MKTS.as_tex_text '亻龵helo さしすサシス 臺灣國語Ⓒ, Ⓙ, Ⓣ𠀤𠁥&jzr#e202;'
-  # debug '©nL12s', MKTS.as_tex_text 'helo さし'
-  # event = [ '(', 'single-column', ]
-  # event = [ ')', 'single-column', ]
-  # event = [ '(', 'new-page', ]
-  # debug '©Gpn1J', select event, [ '(', ')'], [ 'single-column', 'new-page', ]
-
+# unless module.parent?
+#   # @pdf_from_md 'texts/A-Permuted-Index-of-Chinese-Characters/index.md'
+#   # @pdf_from_md 'texts/demo'
+#   TW = @
+#   require '../../mingkwai'
+#   do ->
+#     mktscript = """
+#     # Headline
+
+#     Some *important* text. <box>boxed</box>
+
+#     """
+#     # mktscript = """<box>boxed</box>"""
+#     promisify = ( require 'util' ).promisify
+#     tex_source  = await ( promisify TW.tex_from_md.bind TW ) mktscript, { bare: yes, }
+#     debug '45532', rpr tex_source.trim()
+#     debug '45532', '###'
+
+#   # debug '©nL12s', MKTS.as_tex_text '亻龵helo さしすサシス 臺灣國語Ⓒ, Ⓙ, Ⓣ𠀤𠁥&jzr#e202;'
+#   # debug '©nL12s', MKTS.as_tex_text 'helo さし'
+#   # event = [ '(', 'single-column', ]
+#   # event = [ ')', 'single-column', ]
+#   # event = [ '(', 'new-page', ]
+#   # debug '©Gpn1J', select event, [ '(', ')'], [ 'single-column', 'new-page', ]
+

D                         = require 'pipedreams'
$                         = D.remit.bind D
$async                    = D.remit_async.bind D
#...........................................................................................................
ASYNC                     = require 'async'
#...........................................................................................................

    .pipe @MKTX.SH.$spawn                                   S
    .pipe @MKTX.CALL.$call_await                            S
    .pipe @MKTX.CALL.$call_stream                           S
    .pipe @MKTX.$mktscript                                  S
    # .pipe D.$observe ( event ) -> info ( CND.grey '--------->' ), ( CND.blue event[ 0 ] + event[ 1 ] )
    # .pipe D.$observe ( event ) -> info '23993', ( CND.grey '--------->' ), jr event
    .pipe @MKTX.INLINE.$custom_entities                     S
