Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mousetail/Fish
Browse files Browse the repository at this point in the history
  • Loading branch information
mousetail committed Jul 27, 2023
2 parents 9b562ad + d2572ba commit 1380977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ <h3>Movement</h3>

<div class="two-columns">
<div>
<p><code data-symbol="&gt;&lt;^>">&lt;&gt;^v</code> Change Cursor Direction</p>
<p><code data-symbol="&gt;&lt;^v">&lt;&gt;^v</code> Change Cursor Direction</p>
</div>
<div>
<p><code data-symbol="\/|_#">/\|_#</code> Mirrors</p>
<p><code data-symbol="\/|_#">/\|_#</code> Reflect the cursor direction</p>
</div>
</div>

<p><code data-symbol="x">x</code> Random Direction</p>
<p><code data-symbol="x">x</code> Change cursor directon randomly</p>

<p><code data-symbol="!">!</code> Skip the next instruction, moving 2 spaces instead of 1</p>

Expand Down
5 changes: 1 addition & 4 deletions src/scripts/copy_dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ function format_code_text(codeText: string) {
const titleElement = i != '\n' && document.querySelector(`code[data-symbol*="${i.replace('\\', '\\\\').replace('"', '\\"')}"]`);
if (titleElement) {
const title = (titleElement.nextSibling?.textContent?.trim() ?? '').replace(/\s+/g, ' ');
return `<a href="https://mousetail.github.io/Fish/#${escapeHTML(encodeURIComponent(i))
}" title="${escapeHTML(title ?? '')
}">${escapeHTML(i)
}</a>`
return `<img src="https://$" alt="${escapeHTML(i)}" title="${escapeHTML(title)}">`
} else {
return i;
}
Expand Down

0 comments on commit 1380977

Please sign in to comment.