yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

Does not work with UTF-8 #1009

Closed hoang-himself closed 3 years ago

hoang-himself commented 3 years ago

Related: #287

Problem

I am trying to type Vietnamese characters, but the extension doesn't seem to recognize the characters and decides to block the new characters completely.

This only occurs if you are using a Vietnamese input method program. Pasting the characters still work.

How to reproduce

Reproducible on both UniKey and EVKey. The following uses UniKey.

  1. Download the latest version from the mainpage or SourceForge
  2. Extract and run UniKeyNT.exe
  3. Its icon is now in the taskbar and showing E. Click it once and it will turn into V, indicating the program is now in Vietnamese type mode.
  4. Using its default settings (Unicode, Telex), type in VSCode some sample strings
Input oo ow oof aws thooi khongo rooif
Expected ô ơ thôi không rồi

Configuration

The only Md related settings is

  "files.associations": {
    ".gitignore": "ignore",
    "*.rmd": "markdown",
    "**/*.html": "html",
    "**/requirements{/**,*}.{txt,in}": "pip-requirements",
    "**/templates/**/*": "django-txt",
    "**/templates/**/*.html": "django-html"
  },
Full settings ```jsonc { "[latex]": { "editor.defaultFormatter": "James-Yu.latex-workshop" }, "C_Cpp.updateChannel": "Insiders", "cmake.configureOnOpen": false, "cSpell.language": "en,vi", "debug.onTaskErrors": "showErrors", "diffEditor.codeLens": true, "editor.acceptSuggestionOnEnter": "off", "editor.bracketPairColorization.enabled": true, "editor.cursorBlinking": "expand", "editor.cursorSmoothCaretAnimation": true, "editor.cursorStyle": "block", "editor.fontFamily": "Victor Mono", "editor.fontLigatures": true, "editor.minimap.showSlider": "always", "editor.multiCursorModifier": "ctrlCmd", "editor.renderWhitespace": "trailing", "editor.suggest.preview": true, "editor.suggestSelection": "recentlyUsedByPrefix", "emmet.includeLanguages": { "django-html": "html" }, "emmet.triggerExpansionOnTab": true, "errorLens.enabledDiagnosticLevels": [ "error", "warning", "hint", "info" ], "errorLens.messageTemplate": "$severity [1/$count] $message", "errorLens.severityText": [ "(っ °Д °;)っ", "(*  ̄︿ ̄)", "(︶^︶)", "( ͡° ͜ʖ ͡°)" ], "explorer.confirmDragAndDrop": false, "files.associations": { ".gitignore": "ignore", "*.rmd": "markdown", "**/*.html": "html", "**/requirements{/**,*}.{txt,in}": "pip-requirements", "**/templates/**/*": "django-txt", "**/templates/**/*.html": "django-html" }, "files.autoSave": "onFocusChange", "git.enableCommitSigning": true, "git.smartCommitChanges": "tracked", "git.untrackedChanges": "separate", "githubPullRequests.fileListLayout": "tree", "howIVSCode.userIdentificationKey": "", "html.format.indentInnerHtml": true, "latex-workshop.chktex.delay": 1000, "latex-workshop.chktex.enabled": true, "latex-workshop.chktex.run": "onType", "latex-workshop.latex.tools": [ { "args": [ "--shell-escape", "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-outdir=%OUTDIR%", "%DOC%" ], "command": "latexmk", "env": {}, "name": "latexmk" }, { "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-lualatex", "-outdir=%OUTDIR%", "%DOC%" ], "command": "latexmk", "env": {}, "name": "lualatexmk" }, { "args": [ "%DOC%" ], "command": "latexmk", "env": {}, "name": "latexmk_rconly" }, { "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ], "command": "pdflatex", "env": {}, "name": "pdflatex" }, { "args": [ "%DOCFILE%" ], "command": "bibtex", "env": {}, "name": "bibtex" }, { "args": [ "-e", "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')" ], "command": "Rscript", "env": {}, "name": "rnw2tex" }, { "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")" ], "command": "julia", "env": {}, "name": "jnw2tex" }, { "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")" ], "command": "julia", "env": {}, "name": "jnw2texmintex" }, { "args": [ "--synctex", "--keep-logs", "%DOC%.tex" ], "command": "tectonic", "env": {}, "name": "tectonic" } ], "latex-workshop.view.pdf.viewer": "tab", "notebook.cellToolbarLocation": { "default": "right", "jupyter-notebook": "left" }, "python.insidersChannel": "weekly", "python.languageServer": "Pylance", "redhat.telemetry.enabled": true, "search.exclude": { "**/.venv": true }, "security.workspace.trust.enabled": false, "shellformat.useEditorConfig": true, "sync.gist": "", "terminal.integrated.cursorBlinking": true, "terminal.integrated.defaultProfile.linux": "zsh", "terminal.integrated.fontFamily": "MesloLGS NF", "terminal.integrated.profiles.linux": { "bash": { "args": [ "-l" ], "icon": "terminal-bash", "path": "bash" }, "zsh": { "args": [ "-l" ], "icon": "terminal-bash", "path": "zsh" } }, "thunder-client.codeSnippetLanguage": "cs-httpclient", "todo-tree.general.tags": [ "BUG", "HACK", "FIXME", "TODO", "XXX", "[ ]", "[x]" ], "todo-tree.regex.regex": "(//|#|