This package is based on the idea of remove-markdown and is an attempt to implement this for dart projects.
Import the library
import 'package:remove_markdown/remove_markdown.dart';
Remove markdown from a string:
const markdownString = '**Emphasis**';
// strip markdown off the string
// Result: Emphasis
print(markdownString.removeMarkdown());
List of currently supported markdown bits
Feature | Supported | Tested |
---|---|---|
Paragraphs | ☑ | ☑ |
Links | ☑ | ☑ |
Images | ☑ | ☑ |
Lists | ☑ | ☑ |
Code blocks | ☑ | ☑ |
Inline code | ☑ | ☑ |
Emphasis | ☑ | ☑ |
Headers | ☑ | ☑ |
HTML Tags | ☑ | ☒ |
Tables | ☒ | ☒ |