mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat(doc): HTML converter
This commit is contained in:
parent
61aaa20113
commit
53cb05998b
@ -484,6 +484,22 @@ class NodesToHTMLConverter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Convert the rich text to HTML
|
||||||
|
///
|
||||||
|
/// Use `<b>` for bold only.
|
||||||
|
/// Use `<i>` for italic only.
|
||||||
|
/// Use `<del>` for strikethrough only.
|
||||||
|
/// Use `<u>` for underline only.
|
||||||
|
///
|
||||||
|
/// If the text has multiple styles, use a `<span>`
|
||||||
|
/// to mix the styles.
|
||||||
|
///
|
||||||
|
/// A CSS style string is used to describe the styles.
|
||||||
|
/// The HTML will be:
|
||||||
|
///
|
||||||
|
/// ```html
|
||||||
|
/// <span style="...">Text</span>
|
||||||
|
/// ```
|
||||||
html.Element _deltaToHtml(Delta delta,
|
html.Element _deltaToHtml(Delta delta,
|
||||||
{String? subType, int? end, bool? checked}) {
|
{String? subType, int? end, bool? checked}) {
|
||||||
if (end != null) {
|
if (end != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user