-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0449e94
commit 107d057
Showing
4 changed files
with
62 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// ListGroup.swift | ||
// Example | ||
// | ||
// Created by 王楚江 on 2022/3/12. | ||
// | ||
|
||
import Markdown | ||
import SwiftUI | ||
|
||
struct ListGroup: View { | ||
@State private var mdStr: String = """ | ||
List | ||
=== | ||
1. James Madison | ||
2. James Monroe | ||
3. John Quincy Adams | ||
--- | ||
1. 第一个列表项 | ||
- 第一个嵌套列表项 | ||
- 第二个嵌套列表项 | ||
--- | ||
100. 第一个列表项 | ||
- 第一个嵌套列表项 | ||
- 第二个嵌套列表项 | ||
--- | ||
- [x] #739 | ||
- [ ] https://github.com/octo-org/octo-repo/issues/740 | ||
- [ ] Add delight to the experience when all tasks are complete :tada: | ||
<!-- This content will not appear in the rendered Markdown --> | ||
""" | ||
var body: some View { | ||
Markdown(content: $mdStr) | ||
} | ||
} |
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