gaelj / BlazorCodeMirror6

Blazor wrapper for CodeMirror 6
MIT License
17 stars 1 forks source link

Heading level increase/decrease - minor error in demo? #53

Closed pm64 closed 8 months ago

pm64 commented 8 months ago

Recent enhancements to example projects look beautiful!

But I may have identified a very minor oversight.

The toolbar buttons that trigger "increase markdown heading level" and "decrease markdown heading level" each include a class attribute like this:

<button class=@ButtonClass(c.State, "ATXHeading") ...

Is this intended? At first I thought you meant to highlight these 2 buttons when the selection is a heading. But the specific style "ATXHeading" never surfaces -- only the actual levels like "ATXHeading2". So the button style never changes in the demo, regardless of selection.

gaelj commented 8 months ago

Indeed, a minor oversight on my part which made the example confusing.