Skip to content

Commit

Permalink
Email Templates and Reminders #606
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Nov 12, 2023
1 parent e1c8379 commit e0f6fbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/utils/markdown.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
// DELETE THIS FILE ONCE SUPER EDITOR IS UPDATED
// Note: using the standard function crashes with h1 tags

import 'dart:convert';

Expand Down Expand Up @@ -468,7 +468,7 @@ class AttributedTextMarkdownSerializer extends AttributionVisitor {
final linkMarker =
_encodeLinkMarker(startingAttributions, AttributionVisitEvent.start);

_buffer
_buffer!
..write(linkMarker)
..write(markdownStyles);
}
Expand All @@ -488,7 +488,7 @@ class AttributedTextMarkdownSerializer extends AttributionVisitor {

// +1 on end index because this visitor has inclusive indices
// whereas substring() expects an exclusive ending index.
_buffer
_buffer!
..write(markdownStyles)
..write(linkMarker);
}
Expand Down Expand Up @@ -588,4 +588,3 @@ class _EmptyParagraphSyntax extends md.BlockSyntax {
return md.Element('p', []);
}
}
*/
2 changes: 1 addition & 1 deletion lib/utils/super_editor/super_editor.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/utils/markdown.dart';
import 'package:invoiceninja_flutter/utils/super_editor/toolbar.dart';
import 'package:super_editor/super_editor.dart';
import 'package:super_editor_markdown/super_editor_markdown.dart';

/// Example of a rich text editor.
///
Expand Down

0 comments on commit e0f6fbd

Please sign in to comment.