用接近原生的富文本渲染与编辑组件增强你的应用。Enriched Markdown 适用于 Swift、Kotlin、React Native 和 web。
AI 翻译
Enrich your app with native-like rich text rendering and editing components. Enriched Markdown works across Swift, Kotlin, React Native, and web.
开发工具Kotlin · TypeScriptGitHub @software-mansion在线运营者未确认
试用过了吗? 点一下就好,无需登录。
跨平台的基于Markdown的富文本软件解决方案
AI 翻译
Multiplatform Markdown-Based Rich Text Solution
正在加载完整 README。
查看完整 README ↗A multi-platform SDK for rendering Markdown as native text and editing rich text with Markdown output. Ships as a React Native library with iOS, Android, macOS, and Web support, plus standalone native SDKs for iOS (Swift) and Android (Kotlin).
See the feature comparison table for a detailed breakdown of supported features per platform.
| Platform | Package | README |
|---|---|---|
| React Native | React Native | |
| Android | Android | |
| iOS | iOS |
yarn add react-native-enriched-markdown
import { EnrichedMarkdownText } from 'react-native-enriched-markdown';
import { Linking } from 'react-native';
<EnrichedMarkdownText
markdown={"# Hello\n\nThis is **enriched** [markdown](https://commonmark.org)."}
onLinkPress={({ url }) => Linking.openURL(url)}
/>
dependencies {
implementation("com.swmansion.enriched.markdown:compose:0.3.0")
}
import com.swmansion.enriched.markdown.compose.EnrichedMarkdownText
EnrichedMarkdownText(
markdown = "# Hello\n\nThis is **enriched** [markdown](https://commonmark.org).",
onLinkClick = { url -> /* open url */ },
)
dependencies: [
.package(
url: "https://github.com/software-mansion-labs/enriched-markdown-ios.git",
from: "0.1.0"
),
]
import EnrichedMarkdown
import SwiftUI
EnrichedMarkdownText("# Hello\n\nThis is **enriched** [markdown](https://commonmark.org).")
.environment(\.openURL, OpenURLAction { url in
UIApplication.shared.open(url)
return .handled
})
See the contributing guide to learn how to contribute to the repository and the development workflow.
Enriched Markdown is licensed under The MIT License.
Built by Software Mansion.