Some Links with # rendering incorrectly.

Howard Melman's Avatar

Howard Melman

19 Apr, 2020 05:10 PM

// Please enter a detailed description of the issue
// Description of the issue:

The 3rd (Divine Smite) and 4th (Planar Warrior) links in this text do not render correctly in Marked 2. The aref generated around the # anchor is wrong, it can be seen in Marked 2's status bar when hovering over them and when clicking they lead to blank pages. The first is rendering as <a href="https://www.dndbeyond.com/classes/paladin&lt;span%20class=%22mkstyledtag%22>#DivineSmite-264"> and the second as <a href="https://www.dndbeyond.com/classes/ranger#&lt;/span>HorizonWalker">. This is the case using multimarkdown and Discount. The text renders fine in a gist on github.

// Please enter a list of steps required to reproduce the issue
// Steps to reproduce:

1. Put this text in a file and open in Marked 2

**So-Quis** charges up and throws his boomerang hitting for 5HP. **Zorirash** casts [Bane](https://www.dndbeyond.com/spells/bane) which succeeds and uses Bardic Inspiration on **Angus**. **Angus** casts [Divine Favor](https://www.dndbeyond.com/spells/divine-favor) and attempts to stab the muffin man through his brain box, he channels his divinity and uses the inspiration to hit and uses [Divine Smite](https://www.dndbeyond.com/classes/paladin#DivineSmite-264) for a total of 17HP. **Falemur** invokes [Planar Warrior](https://www.dndbeyond.com/classes/ranger#HorizonWalker) and fires an arrow for 16HP. **Sam** [portents](https://www.dndbeyond.com/classes/wizard#SchoolofDivination) a crit with a 2nd level [Chromatic Orb](https://www.dndbeyond.com/spells/chromatic-orb) doing 40HP of lightning damage finally bloodying him. Panagrim casts [Ice Storm](https://www.dndbeyond.com/spells/ice-storm) in the center of the room. **Falemur** goes down the rest of us are quite hurt. **Shazzan** leaps off a shelf and attacks with his rapier but misses. **Rusty** casts [Healing Word](https://www.dndbeyond.com/spells/healing-word) on **Falemur** for 4HP and then casts [Guiding Bolt](https://www.dndbeyond.com/spells/guiding-bolt) for 11HP.

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit)
Marked 2 987 (Mac App Store)
macOS Version: 10.14.6
---
additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: Discount (GFM)
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 1
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: YES
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: 0
removeYAMLHeaders: NO
scrollToEdit: 1
shouldDetectCritic: YES
shouldHighlightMarkupErrors: YES
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • foo.md 1.56 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

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