<div dir="ltr">You could also use an old version of Showdown. The v1.2.x branch contains one that should work in the lib/vendor directory.<br><br><a href="https://github.com/openannotation/annotator/tree/v1.2.x/lib/vendor">https://github.com/openannotation/annotator/tree/v1.2.x/lib/vendor</a><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 29, 2016 at 5:10 PM Randall Leeds <<a href="mailto:randall@bleeds.info">randall@bleeds.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>If you check the issue tracker you can find a very similar issue [1].<br><br></div>This issue has been fixed. Annotator v1.2.x has never been updated to support the newer versions of Showdown.<br><br></div>You could either backport the patch [2] and submit a pull request or try to migrate to the development tip of Annotator.<br><br>[1] <a href="https://github.com/openannotation/annotator/issues/542" target="_blank">https://github.com/openannotation/annotator/issues/542</a><br>[2] <a href="https://github.com/openannotation/annotator/commit/83dfed16e2b4f1c9f6f8427f70c5cfb15f247039" target="_blank">https://github.com/openannotation/annotator/commit/83dfed16e2b4f1c9f6f8427f70c5cfb15f247039</a><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 28, 2016 at 2:08 AM Ralph Heinkel <<a href="mailto:rh@ralph-heinkel.com" target="_blank">rh@ralph-heinkel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi everyone,<br>
    <br>
    has anyone had success with activating the markup plugin with
    annotator 1.2? <br>
    My minimal setup is:<br>
    
    <pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:8.9pt"><<span style="color:#000080;font-weight:bold">html</span>>
    <<span style="color:#000080;font-weight:bold">head</span>>
        <<span style="color:#000080;font-weight:bold">link </span>rel=<span style="color:#008000;font-weight:bold">"stylesheet" </span>href=<span style="color:#008000;font-weight:bold"><a href="http://assets.annotateit.org/annotator/v1.2.10/annotator.min.css" target="_blank">"http://assets.annotateit.org/annotator/v1.2.10/annotator.min.css"</a></span>>
        <<span style="color:#000080;font-weight:bold">script </span>src=<span style="color:#008000;font-weight:bold"><a href="https://code.jquery.com/jquery-1.11.3.js" target="_blank">"https://code.jquery.com/jquery-1.11.3.js"</a></span>></<span style="color:#000080;font-weight:bold">script</span>>
        <<span style="color:#000080;font-weight:bold">script </span>src=<span style="color:#008000;font-weight:bold"><a href="https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js" target="_blank">"https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js"</a></span>></<span style="color:#000080;font-weight:bold">script</span>>
        <<span style="color:#000080;font-weight:bold">script </span>src=<span style="color:#008000;font-weight:bold"><a href="http://assets.annotateit.org/annotator/v1.2.10/annotator.min.js" target="_blank">"http://assets.annotateit.org/annotator/v1.2.10/annotator.min.js"</a></span>></<span style="color:#000080;font-weight:bold">script</span>>
        <<span style="color:#000080;font-weight:bold">script </span>src=<span style="color:#008000;font-weight:bold"><a href="http://assets.annotateit.org/annotator/v1.2.10/annotator.markdown.min.js" target="_blank">"http://assets.annotateit.org/annotator/v1.2.10/annotator.markdown.min.js"</a></span>></<span style="color:#000080;font-weight:bold">script</span>>
    </<span style="color:#000080;font-weight:bold">head</span>>
    <<span style="color:#000080;font-weight:bold">body</span>>
        <<span style="color:#000080;font-weight:bold">div </span>id=<span style="color:#008000;font-weight:bold">"content"</span>>
            <<span style="color:#000080;font-weight:bold">h1</span>>Titel</<span style="color:#000080;font-weight:bold">h1</span>>
        </<span style="color:#000080;font-weight:bold">div</span>>
        <<span style="color:#000080;font-weight:bold">script </span>type=<span style="color:#008000;font-weight:bold">"text/javascript"</span>>
        jQuery(<span style="color:#000080;font-weight:bold">function </span>($) {
            $(<span style="color:#008000;font-weight:bold">'#content'</span>).annotator().annotator(<span style="color:#008000;font-weight:bold">'addPlugin'</span>, <span style="color:#008000;font-weight:bold">'Markdown'</span>);
        });
        </<span style="color:#000080;font-weight:bold">script</span>>
    </<span style="color:#000080;font-weight:bold">body</span>>
</<span style="color:#000080;font-weight:bold">html</span>>
</pre>
    However the activation fails, and firebug report the following
    error:<br>
    <br>
        <span><span><b>To use the Markdown plugin, you must
          include Showdown into the page first.</b><br>
        <br>
        Obviously the showdown js module is loaded before annotator in
        the HTML above, what else can be wrong? Any help is very much
        appreciated.<br>
        <br>
        Thanks,<br>
        <br>
        Ralph<br>
      </span></span>
  </div>

_______________________________________________<br>
annotator-dev mailing list<br>
<a href="mailto:annotator-dev@lists.okfn.org" target="_blank">annotator-dev@lists.okfn.org</a><br>
<a href="https://lists.okfn.org/mailman/listinfo/annotator-dev" rel="noreferrer" target="_blank">https://lists.okfn.org/mailman/listinfo/annotator-dev</a><br>
Unsubscribe: <a href="https://lists.okfn.org/mailman/options/annotator-dev" rel="noreferrer" target="_blank">https://lists.okfn.org/mailman/options/annotator-dev</a><br>
</blockquote></div></blockquote></div>