aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/_icons/subscript.svg6
-rw-r--r--src/_icons/superscript.svg6
-rw-r--r--src/editor.html4
3 files changed, 14 insertions, 2 deletions
diff --git a/src/_icons/subscript.svg b/src/_icons/subscript.svg
new file mode 100644
index 0000000..88e7246
--- /dev/null
+++ b/src/_icons/subscript.svg
@@ -0,0 +1,6 @@
+---
+---
+<svg>
+ <path d="M4 7l8 10m-8 0l8 -10"></path>
+ <path d="M21 20h-4l3.5 -4a1.73 1.73 0 00-3.5 -2"></path>
+</svg>
diff --git a/src/_icons/superscript.svg b/src/_icons/superscript.svg
new file mode 100644
index 0000000..cb263a5
--- /dev/null
+++ b/src/_icons/superscript.svg
@@ -0,0 +1,6 @@
+---
+---
+<svg>
+ <path d="M4 7l8 10m-8 0l8 -10"></path>
+ <path d="M21 11h-4l3.5 -4a1.73 1.73 0 00-3.5 -2"></path>
+</svg>
diff --git a/src/editor.html b/src/editor.html
index 193bcff..7eefad1 100644
--- a/src/editor.html
+++ b/src/editor.html
@@ -2,7 +2,7 @@
layout: default
---
-{% assign toolbar = 'arrow-back-up,arrow-forward-up,printer,paint|bold,italic,underline,strikethrough|align-left,align-center,align-right,align-justified,line-height|list,list-check|link,photo,table|sort-ascending,sort-descending|indent-increase,indent-decrease' | split: '|' %}
+{% assign toolbar = 'arrow-back-up,arrow-forward-up,printer,paint|bold,italic,underline,strikethrough|align-left,align-center,align-right,align-justified,line-height|list,list-check|link,photo,table|sort-ascending,sort-descending|indent-increase,indent-decrease|subscript,superscript' | split: '|' %}
<div class="container">
@@ -79,7 +79,7 @@ layout: default
{% assign buttons = group | split: ',' %}
<div class="buttons">
{% for button in buttons %}
- <div class="button js-icon" data-icon="{{ name }}">{% include icon.html name=button %}</div>
+ <div class="button js-icon" data-icon="{{ button }}">{% include icon.html name=button %}</div>
{% endfor %}
</div>
{% endfor %}