<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Mariano<br>
    </p>
    <div class="moz-cite-prefix">On 13/03/2025 10:22 pm, Mariano Montone
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ffe4d003-538b-4bf5-a335-07988ce71e1e@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">El 13/3/25 a las 17:58, H. Hirzel
        escribió:<br>
      </div>
      <blockquote type="cite"
        cite="mid:62c35503-c2b0-4981-9a48-76a818ec8a4c@gmail.com">
        <p><b>Program listing code can not be selected and copied.</b></p>
        <p>The Docbook XML snippet<br>
        </p>
        <p><programlisting><br>
          pandoc -f markdown -t docbook MyDocBookTest1.md -o
          MyDocBookTest1.xml<br>
          </programlisting></p>
      </blockquote>
    </blockquote>
    <br>
    <blockquote type="cite"
      cite="mid:ffe4d003-538b-4bf5-a335-07988ce71e1e@gmail.com">
      <blockquote type="cite"
        cite="mid:62c35503-c2b0-4981-9a48-76a818ec8a4c@gmail.com">2. A
        better solution would be to have a 'copy' button which copies
        the content to the clipboard.</blockquote>
      <blockquote type="cite"
        cite="mid:62c35503-c2b0-4981-9a48-76a818ec8a4c@gmail.com"> </blockquote>
      <p>I've added this button.</p>
    </blockquote>
    <p>Thank you for adding the button, I can now start making use of my
      hundreds of markdown files converted by pandoc to DocBook XML
      format!</p>
    <p>Another rendering feature would be nice as I would like to go
      into Literate programming with this: If I mark literal code in
      markdown with back ticks it is converted to
      <literal>....</literal> by pandoc in DocBook XML. And
      Erudite parses this element into an EruditeStyledText node
      element. Parsing it as an EruditeDocCode is probably better.  But
      that node would need to keep track of if the DocBook tag was
      <literal>...</literal> or
      <programlisting>...</programlisting>. In the
      <literal> case the content is rendered in-line, in the
      <programlisting> case as a paragraph.<br>
    </p>
    <p>Maybe it is better to create another node type
      EruditeInlineDocCode and use that for the <literal> element.</p>
    <p>My main aim is to arrive at a solution where I can click on a
      class name and get a Smalltalk system browser opened on the class.</p>
    <p>It probably needs the convention that the literal element is
      marked with 'class' at the end is suppressed when rendering but
      make clickable to open a browser if we have<br>
    </p>
    <p>Markdown snippet:</p>
    <p>The `EruditeDocBookParser class` parses DocBook XML files and
      builds a document tree consisting of `EruditeDocNode class`
      nodes.  <br>
    </p>
    <p>Converted by pandoc into the DocBook XML snippet</p>
    <p><para><br>
            The <literal>EruditeDocBookParser
      class</literal> parses DocBook<br>
            XML files and builds a document tree consisting of<br>
            <literal>EruditeDocNode class</literal> nodes.<br>
          </para></p>
    <p>I attach 3 MyDocBookTest2 files to test this including the
      current Morphic rendering which illustrate the issue.<br>
    </p>
    <p>Kind regards</p>
    <p>Hannes<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>