Skip to content

Commit

Permalink
v1.0.26 feat: add theme-auto-switch-disabled attribute. 7400b9c
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 4, 2024
1 parent ceb68f9 commit ac7d4c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
max-width: 890px;
margin: 0 auto;
padding: 0 15px;
padding-bottom: 230px;
padding-top: 120px;
}
</style>
</head>
<body>
<dark-mode light="Light" dark="Dark" style="position: fixed; left: 10px; top: 8px;"></dark-mode>
<github-corners target="__blank" href="https://github.com/jaywcjlove/markdown-style"></github-corners>
<h1>Markdown Style Example</h1>
<markdown-style style="max-width: 520px; border: 1px solid #506d9b3b; padding: 10px;">
<markdown-style theme-auto-switch-disabled="true" style="max-width: 520px; border: 1px solid #506d9b3b; padding: 10px;">
```jsx
import React from 'react';
import 'markdown-style';
Expand Down Expand Up @@ -155,6 +157,14 @@ <h1>Markdown Style</h1>
&lt;/markdown-style&gt;
```

Disable internal theme switching functionality

```html
&lt;markdown-style theme-auto-switch-disabled theme=&#34;dark&#34;&gt;
&lt;h1&gt;Markdown Style&lt;/h1&gt;
&lt;/markdown-style&gt;
```

## Contributors

As always, thanks to our amazing contributors!
Expand Down
4 changes: 4 additions & 0 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac7d4c5

Please sign in to comment.