Text surrounded with backticks may be displayed with <span> elements.

the.tester's Avatar


11 Mar, 2023 01:50 PM

In some cases, Marked two displays text surrounded with backticks, with additional <span> elements.

Steps to reproduce:

  1. 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.

  1. Open that file with Marked 2.
  2. The displayed file is shown with elements.


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 (do not edit) Marked 2 1040 (Mac App Store)

macOS Version: 13.2.1

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
permissionGranted: NO
printHeaderFirstPage: NO
printFooterFirstPage: NO
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: YES
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
useCustomPreprocessor: NO
useFirstH1AsPrintTitle: YES

  1. 1 Posted by the.tester on 11 Mar, 2023 01:54 PM

    the.tester's Avatar

    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. 2 Posted by the.tester on 11 Mar, 2023 01:55 PM

    the.tester's Avatar

    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

  3. Support Staff 3 Posted by Brett on 11 Mar, 2023 02:05 PM

    Brett's Avatar

    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).

    On Mar 11, 2023 at 7:58 AM -0600, Stephan <[email blocked]>, wrote:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • text-file-content-and-display.png 223 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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