An open API service indexing awesome lists of open source software.

https://github.com/yahiaangelo/markdownedittext

A native Rich Text Editor with Markdown export option.
https://github.com/yahiaangelo/markdownedittext

android markdown markdown-editor

Last synced: 12 months ago
JSON representation

A native Rich Text Editor with Markdown export option.

Awesome Lists containing this project

README

          

# MarkdownEditText [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.yahiaangelo.markdownedittext/markdownedittext/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.yahiaangelo.markdownedittext/markdownedittext)

A native Rich text editor for android based on [Markwon](https://github.com/noties/Markwon) library with export to Markdown option

---
## Preview

---

## Usage:

### Adding the depencency
Add the dependency to your app build.gradle file:
```
implementation 'io.github.yahiaangelo.markdownedittext:markdownedittext:$latestVersion'
```
### XML
```xml


```
### Code
```kotlin
val markdownEditText = findViewById(R.id.edittext)
val stylesBar = findViewById(R.id.stylesbar)
markdownEditText.setStylesBar(stylesBar)
```
#### Customize default Styles bar :
```Kotlin
//Select specific Styles to show
stylesbar.stylesList = arrayOf(MarkdownEditText.TextStyle.BOLD, MarkdownEditText.TextStyle.ITALIC)
```
---

### Available styles:
* bold
* italic
* strike through
* links
* bullet list
* numbered list
* tasks list
---

### Libraries:
[Material Design components](https://github.com/material-components/material-components-android)

[Markwon](https://github.com/noties/Markwon)

---
## License:
```
Copyright 2020 YahiaAngelo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```