djplaner / word-to-canvas-module

A userscript that will create a Canvas Module (including all module items) from a Word document (using special styles)

Home Page:https://djplaner.github.io/word-to-canvas-module/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canvas File Links producing double icons

djplaner opened this issue · comments

For some filenames, word2canvas generating two separate spans for the one file.

e.g.

<span class="instructure_file_holder link_holder instructure_file_link_holder"><a id="92487" class="inline_disabled preview_in_overlay" href="https://lms.griffith.edu.au/courses/236/files/92487?wrap=1" target="_blank" data-canvas-previewable="true" data-api-endpoint="https://lms.griffith.edu.au/api/v1/courses/236/files/92487" data-api-returntype="File">
                   UNIDROIT principles 
                </a><a class="file_download_btn" role="button" download="" style="margin-inline-start: 5px; text-decoration: none;" href="https://lms.griffith.edu.au/courses/236/files/92487/download?download_frd=1">
            <img style="width:16px; height:16px" src="/images/svg-icons/svg_icon_download.svg" alt="" role="presentation">
            <span class="screenreader-only">
              Download 
                   UNIDROIT principles 
                
            </span>
          </a></span>
  • What is the cause of the problem
  • Fix it