Skip to content

Commit 81deb77

Browse files
committed
version bump and var scope tweak
1 parent 1d21879 commit 81deb77

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/inlineMarkdownEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10377,8 +10377,8 @@ module.exports = function processSection(markdown, o) {
1037710377
o.submitSectionForm = o.submitSectionForm || function submitSectionForm(e, before, after, o) {
1037810378
e.preventDefault();
1037910379
$.post(o.replaceUrl, {
10380-
before: before,
10381-
after: after
10380+
before: before, // encodeURI(before)
10381+
after: after // encodeURI(after)
1038210382
})
1038310383
.done(function onComplete(response) {
1038410384
// we should need fewer things here:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inline-markdown-editor",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "An inline wysiwyg markdown document editor based on replacing string subsections. WYSIWYG possible via woofmark.",
55
"main": "dist/inlineMarkdownEditor.js",
66
"scripts": {

src/processSection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ module.exports = function processSection(markdown, o) {
5555
o.submitSectionForm = o.submitSectionForm || function submitSectionForm(e, before, after, o) {
5656
e.preventDefault();
5757
$.post(o.replaceUrl, {
58-
before: before,
59-
after: after
58+
before: before, // encodeURI(before)
59+
after: after // encodeURI(after)
6060
})
6161
.done(function onComplete(response) {
6262
// we should need fewer things here:

0 commit comments

Comments
 (0)