-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mdjs support for story-code blocks
- Loading branch information
Showing
10 changed files
with
333 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
'@mdjs/core': patch | ||
'@mdjs/mdjs-preview': patch | ||
--- | ||
|
||
If your preview is followed by a code blocks marked as `story-code` then those will be shown when switching between multiple platforms | ||
|
||
````md | ||
```js preview-story | ||
// will be visible when platform web is selected | ||
export const JsPreviewStory = () => html` <demo-wc-card>JS Preview Story</demo-wc-card> `; | ||
``` | ||
|
||
```xml story-code | ||
<!-- will be visible when platform android is selected --> | ||
<Button | ||
android:id="@+id/demoWcCard" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Android Code" | ||
style="@style/Widget.FooComponents.Demo.Wc.Card" | ||
/> | ||
``` | ||
|
||
```swift story-code | ||
// will be visible when platform ios is selected | ||
import DemoWc.Card | ||
|
||
let card = DemoWcButton() | ||
``` | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Markdown with JavaScript (mdjs) | ||
|
||
Combine Markdown with JavaScript | ||
|
||
For docs please see our homepage [https://rocket.modern-web.dev/docs/markdown-javascript/overview/](https://rocket.modern-web.dev/docs/markdown-javascript/overview/). | ||
[=> See Source <=](../../docs/docs/markdown-javascript/overview.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Preview element for mdjs | ||
|
||
For docs please see our homepage [https://rocket.modern-web.dev/docs/markdown-javascript/preview/](https://rocket.modern-web.dev/docs/markdown-javascript/preview/). | ||
[=> See Source <=](../../docs/docs/markdown-javascript/preview.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.