Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Fix incorrect tag completion in code block#341

Merged
sota1235 merged 15 commits into
BoostIO:masterfrom
asmsuechan:fix-incorrect-tag-completion
Apr 29, 2017
Merged

Fix incorrect tag completion in code block#341
sota1235 merged 15 commits into
BoostIO:masterfrom
asmsuechan:fix-incorrect-tag-completion

Conversation

@asmsuechan

Copy link
Copy Markdown
Contributor

Finally, I fixed this problem which is reported by #333 and #294.

Before, this code didn't work well in CodeBlock: <port protcol="tcp" port="10022"/>

screen shot 2017-03-19 at 14 13 50

before

screen shot 2017-03-19 at 14 15 29

after

screen shot 2017-03-19 at 14 13 54

@asmsuechan

asmsuechan commented Mar 19, 2017

Copy link
Copy Markdown
Contributor Author

And also I handled <?php issue reported by #275 and #205 by the second commit.

screen shot 2017-03-19 at 14 19 09

screen shot 2017-03-19 at 14 19 05

(Forgive me 😝, I made a mistake to declare the variable a in the PHP code because I'm not familiar with PHP)

@asmsuechan asmsuechan changed the title Fix incorrect tag completion in code block Mar 19, 2017
@asmsuechan asmsuechan changed the title [WIP] Fix incorrect tag completion in code block Mar 19, 2017
@asmsuechan

Copy link
Copy Markdown
Contributor Author

Until the second commit, KaTeX didn't work well. But now after third commit, it works well.

screen shot 2017-03-19 at 15 26 09

screen shot 2017-03-19 at 15 26 05

Comment thread browser/components/MarkdownPreview.js Outdated
['#63', '?']
]

for (var i = 0, max = entities.length; i < max; ++i) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This for loop must be refactored.

@sota1235 sota1235 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not working for single quote...


Let's consider about this problem together.

@asmsuechan

Copy link
Copy Markdown
Contributor Author

I fixed that bug, cut into a helper, and also added tests.

screen shot 2017-04-22 at 16 21 16

const decodedText = htmlTextHelper.decodeEntities(encodedText)
t.is(decodedText, testCase, 'Integration test through encodedText() and decodedText()')
})
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are good JavaScript Engineer 👍

@sota1235 sota1235 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sota1235 sota1235 merged commit b7ba29a into BoostIO:master Apr 29, 2017
@kazup01

kazup01 commented Apr 29, 2017

Copy link
Copy Markdown
Member

o~

@kazup01

kazup01 commented Apr 29, 2017

Copy link
Copy Markdown
Member

fantastic👍

@kohei-takata kohei-takata mentioned this pull request Jun 12, 2017
@asmsuechan asmsuechan deleted the fix-incorrect-tag-completion branch July 21, 2017 04:40
@PascalAOMS

PascalAOMS commented Jan 15, 2019

Copy link
Copy Markdown

I'm running 0.11.12 and get this issue again.

Is there an option checkbox I need to tick or has the fix been broken with later updates?

EDIT: Noticed it only happen when enabling dangerous HTML tags.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants