docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.47k stars 5.67k forks source link

Support of multiple class names with Markdown helper #2471

Open paulhibbitts opened 2 months ago

paulhibbitts commented 2 months ago

Bug Report

Steps to reproduce

  1. Use Markdown helper to assign multiple classes to link or image, for example with Docsify v5 [Button Title](https://google.com ':class=button primary')

Current behaviour

Currently only the first class included in quotes is applied, and the others are ignored.

Expected behaviour

All classes contained in the quotes should be applied.

Other relevant information

Please create a reproducible sandbox

https://codesandbox.io/p/sandbox/winter-darkness-2nk8hp

Mention the docsify version in which this bug was not present (if any)