Text surrounded with backticks may be displayed with <span> elements.
In some cases, Marked two displays text surrounded with backticks, with additional <span>
elements.
Steps to reproduce:
- Create an examples file with, for example:
echo 'In Ruby objects of class Object
respond to the methods/messages #nil?
and #to_s
'. > example.md
Note that "#method_name" is the idomatic way to denote instance methods in Ruby documentation, esp. when used in conbination with classes.
- Open that file with Marked 2.
- The displayed file is shown with elements.
Suggestion
I'd suggest to at least provide a way to display the text as intended. One possible way is to allow escaping the #-sign. Another way is to not render the backtick-octothorpe-combination with a element.
Configuration
// Configuration (do not edit) Marked 2 1040 (Mac App Store)
macOS Version: 13.2.1
additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: YES
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: YES
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: Discount (GFM)
enableMiniMap: YES
excludeBlockQuotesFromCounts: YES
excludeFootnotesFromCounts: YES
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: YES
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: YES
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by the.tester on 11 Mar, 2023 01:54 PM
Oh, the code in that command line should not have been highlighted, but instedt used backticks. Is there a way to escape the backticks? Maybe `something` (trying a backslash here).
2 Posted by the.tester on 11 Mar, 2023 01:55 PM
OK, the command line should look like this:
echo 'In Ruby objects of class Object respond to the methods/messages `#nil?` and `#to_s`'. > example.md
Support Staff 3 Posted by Brett on 11 Mar, 2023 02:05 PM
i think they’re being interpreted as tags. It shouldn’t do it within code spans, so I’ll have to look at that, but you can disable #tag rendering entirely in Preferences (sorry, afk so I can’t remember exactly which preference pane it’s on).
Thanks,
Brett
On Mar 11, 2023 at 7:58 AM -0600, Stephan <[email blocked]>, wrote: