tag:support.markedapp.com,2011-09-11:/discussions/problems/161866-curly-quotes-break-renderingMarked: Discussion 2021-02-19T12:55:51Ztag:support.markedapp.com,2011-09-11:Comment/490431832021-02-18T18:04:34Z2021-02-18T18:04:38Zcurly quotes break rendering<div><p>// Please enter a detailed description of the issue // Description of the issue:</p>
<p>Whenever I have a curly quote (“ or ”) in my markdown, Marked refuses to render anything when I open the doc--I just get a blank document. If Marked is already open and displaying the document I'm editing, and I add a curly quote, then it either spins for a bit and does nothing, or gives me an error saying it's an unrecognized file type.</p>
<p>I get it that curly quotes make it not plain text, but it'd be great if Marked could still try to render everything else and replace problematic characters with some placeholder icon so I could more easily find the problem. As it is, if I don't immediately know where the problem character is (e.g. when pasting in a bunch of text), I end up having to binary search. Not a huge deal, just a little annoying.</p>
<p>// Please enter a list of steps required to reproduce the issue // Steps to reproduce:</p>
<ol>
<li>Create a markdown doc with a curly quote in it (“ or ”)<br></li>
<li>Open in Marked</li>
</ol>
<p>// If applicable please attach a sample document that causes the issue for you.</p>
<p>// Configuration (do not edit) Marked 2 1014 (Direct)</p>
<h2><a name="macos-version-11-2-1-" class="anchor" href="#macos-version-11-2-1-"></a>macOS Version: 11.2.1</h2>
<p>additionalMathJaxConfig:<br>
allowPageBreakInCode: YES<br>
bookTxtIsLeanpub: NO<br>
summaryMdIsGitBook: NO<br>
codeIsPoetry: NO<br>
codeCanWrap: YES<br>
collapsibleHeadlines: NO<br>
convertGithubCheckboxes: YES<br>
convertGithubEmoji: YES<br>
convertYAMLToMMD: NO<br>
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML<br>
defaultPreviewStyle: 3<br>
defaultProcessor: Discount (GFM)<br>
enableMiniMap: NO<br>
excludeBlockQuotesFromCounts: NO<br>
excludeFootnotesFromCounts: NO<br>
excludeVerbatimFromCounts: NO<br>
excludeCaptionsFromCounts: NO<br>
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml<br>
githubNewlines: YES<br>
h1IsPageBreak: NO<br>
h2IsPageBreak: NO<br>
hrIsPageBreak: NO<br>
includeMathJax: YES<br>
includeKatex: NO<br>
limitTextWidth: NO<br>
mathNumberEquations: NO<br>
mathNumberEquationsSide: 0<br>
mathNumberEquationsAMSOnly: NO<br>
minimalJavaScript: NO<br>
outlineModeExtensions:<br>
permissionGranted: NO<br>
printHeaderBottomLeft:<br>
printHeaderBottomRight:<br>
printHeaderFirstPage: NO<br>
printFooterFirstPage: NO<br>
printHeaderTopLeft:<br>
printHeaderTopRight:<br>
processHTMLFiles: YES<br>
removeMetadataForPreview: NO<br>
removeYAMLHeaders: NO<br>
scrollToEdit: YES<br>
shouldDetectCritic: YES<br>
shouldHighlightMarkupErrors: YES<br>
shouldLoadCritic: NO<br>
syntaxHighlight: YES<br>
syntaxHighlightOnlyLang: NO<br>
useCustomMarkdownProcessor: NO<br>
customMarkdownProcessor:<br>
useCustomPreprocessor: NO<br>
customPreprocessor:<br>
useFirstH1AsPrintTitle: YES</p></div>Chris Bartleytag:support.markedapp.com,2011-09-11:Comment/490431832021-02-19T00:01:06Z2021-02-19T00:01:06Zcurly quotes break rendering<div><p>Under neither built-in processor should this be an issue. I tested curly<br>
quotes in both the Discount and MultiMarkdown processor and they<br>
rendered fine, just as you would expect. Your sample document, however,<br>
does not contain curly quotes by any ascii standard. What editor created<br>
this file, and what language do you usually work in?</p>
<p>If I open it in Sublime Text, I see <code>It has Òcurly quotesÓ.</code>. If I<br>
open it in MultiMarkdown Composer, it's in what appears to be Japanese.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/490431832021-02-19T02:02:02Z2021-02-19T02:02:03Zcurly quotes break rendering<div><p>Ah! Interesting! I only have the problem when creating with IntelliJ IDEA. If I create in TextEdit, it opens in Marked just fine. I've attached a zip with two test files--one created in IntelliJ IDEA, the other in TextEdit. I copied the curly quotes from here:</p>
<p><a href="https://www.compart.com/en/unicode/U+201C">https://www.compart.com/en/unicode/U+201C</a><br>
<a href="https://www.compart.com/en/unicode/U+201D">https://www.compart.com/en/unicode/U+201D</a></p>
<p>Double-clicking the one created in IntelliJ causes Marked to give the error. Double-clicking the one created in TextEdit opens in Marked just fine.</p>
<p>I use Marked's GitHub processor exclusively.</p>
<p>Also, FWIW, using TextEdit to open the one created in IntelliJ renders the curly quotes just as expected. No Japanese or whatnot.</p>
<p>Thanks!</p></div>Chris Bartleytag:support.markedapp.com,2011-09-11:Comment/490431832021-02-19T11:39:14Z2021-02-19T11:39:14Zcurly quotes break rendering<div><p>Can you tell IntelliJ to use UTF-8 encoding?</p>
<ul>
<li>Brett</li>
</ul></div>Brett