jessegavin / jQuery-Chord-Transposer

jQuery plugin that lets you transpose chords in a plain text song
https://jquery-chord-transposer.now.sh/
113 stars 48 forks source link

Plugin removes all html tags inside <pre> #7

Closed pozitron57 closed 7 years ago

pozitron57 commented 8 years ago

The code

<pre data-key="D">
A     F#m
First line
<span class="red">Second line</span>
<div class="green">Third line</div>
</pre>

turns into the code

<pre data-key="A">
<span>
  <span class="c">A</span>
  <span class="c">F#m</span>    
</span>
<span>First line</span>
<span>Second line</span>
<span>Third line</span>
<span></span>
</pre>

Hence one cannot use html tags to customize lines' appearance.

jessegavin commented 7 years ago

You are correct. Right now this library doesn't support custom markup for individual lines or words.