falnatsheh / markdownview Goto Github PK
View Code? Open in Web Editor NEWMarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.
License: Other
MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.
License: Other
I love this library, please add MathJax Support, it will be more usefull
I tried to use your library through compiling the project and including the jar file into my project, but either ways I was not able to use it.
a) I tried adding the next lines to my settings.gradle
def markdownView = file('../MarkdownView/MarkdownView' )
settings.createProjectDescriptor( rootProjectDescriptor, 'markdown-view', markdownView )
include ':markdown-view'
and to my build.gradle
compile project( ':markdown-view')
The result is that the Android Studio (v.0.8.6) says: Error:Configuration with name 'default' not found.
b) I tried adding the jar file markdownview-1.2.jar into the libs folder but for some reason when I want to use the MarkdownView class that is not in the classpath.
Any suggestion? I think the library looks quite well, but could be really handy if you could add the installation process.
I think the best way to include your project is through the first solution because I everyone can pull the repository and rebuild the project, getting the latest changes.
You requested an update for the F-Droid version at https://f-droid.org/forums/topic/markdownview/, however your build.gradle
file still says this is version "1.0" with versioncode "1". You have to bump at least the versioncode (an integer value), because that determines if it's an update or not. See: https://developer.android.com/studio/publish/versioning.html
Just wondering before installing.
MarkdownView's background seem to always be white, as opposed to TextView's default transparent. It also ignores any andoird:background definitions in the layout XML.
Hi!
Does this library supports Github flavored Markdown
?
how to load text with custom font?
can't support under android 5.0
Hi,
I tried adding this line to my markdown text:
![Levels Meter](file:///android_asset/levels.PNG)
It didn't display the image from the assets folder. Is there a way to do it?
My layout xml:
<us.feras.mdv.MarkdownView android:id="@+id/markdownView" android:layout_width="match_parent" android:layout_height="match_parent" />
My code:
`public class MarkdownViewActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.markdown_view_activity);
MarkdownView markdownViewFeras = (MarkdownView) findViewById(R.id.markdownView_Feras);
markdownViewFeras.loadMarkdownFile("file:///android_asset/my.md" );
}
}`
OK. It's work.
But has problem only with image. The image is horizontal scrolling. But I need to scale image (without horizontal scrolling). Is it possible?
Hi,
I loaded a MD-File containing big images (6x1MB).
The loading progress is very slow, so the content isn't showing fast enough.
Is there a way to speed it up? e.g loading the images asynchron?
I am not able to see the bullet or number list, how to show using MarkdownView
Also if I try to set text from some string variable it is not rendered in markdown
It seems that
def HW():
print('Hello, World!')
doesn't work.
And I can't use HTTPS connection such as the readme file of the project https://raw.githubusercontent.com/falnatsheh/MarkdownView/master/README.md
Is there any way to check when the MardownView is downloading or loading the file so show/hide a circle progress bar?
This will throw an exception if html has any String.format tokens in it - for example %20
in a URL. Should either construct the <link>
tag separately or just concatenate and don't use String.format
please update to MarkdownView 1.1.0 F-droid repo...
thanks
When writing e.g. ### Headline [\[web\]][4]
it is shown as Headline [\[web\]
instead of Headline [web]
When loading a utf-8 encoded file (from the internet), special characters(like ěščřžýáíé) are not displayed correctly.
This is most likely an error on my part:
I have several local image files linked in an MD file like so:
![AdvDisNeutral1](AdvDisNeutral1.png)
However, they do not show up. What syntax should I use?
This MD file is in the assets folder along with the images embedded in them.
Just a note: text renders perfectly.
Moved @xiekui1992 comment #16 to it's own issue:
When writing the (or tab) + enter + my code +(or tab),the code block is not display,the lib is not support this grammar?
Hey,
I gave it the markdown for the readme of this repository
markdownView.loadMarkdownFile("https://raw.githubusercontent.com/falnatsheh/MarkdownView/master/README.md");
And it doesn't render the images in this readme properly.
Additionally, most of the text in the readme has the link to the icon and there is a lot of starting white space (at least 1 screen).
Thanks.
I wonder if MarkdownView can provide a constructor like this that one could use to display unicode?
loadDataWithBaseURL()
For example, in WebView one can do:
mywebView.loadDataWithBaseURL(null, "some unicode string", "text/html", "utf-8", null);
I think we would have to replace "text/html" with something else in case of markdown but I'm not sure which...
Markdown strikethrough syntax doesn't render properly unless done in HTML.
~~This doesn't work...~~
<span style="text-decoration: line-through">...But this does</span>
Allow the user to change the markdown processor, this could be predefined or a custom one.
I need to save my MarkdownView as a picture or HTML file, does anyone know how to do it?
I've tried
String md =
"First Header | Second Header\n" +
"------------- | -------------\n" +
"*Content Cell* | Content Cell\n" +
"Content Cell | Content Cell";
mMarkdownView.loadMarkdown(md);
💥 But it doesn't display a table
What do I wrong? - Please help!
Does MarkdownView support to display table? I tested that it only show plain text instead of a table, I use the markdown text presents at:
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables
I was going to simplify one of app pages with this app but it's very slow.
I am using ByteArrayOutputStream
to convert my raw markdown file into a string and then use this library (https://github.com/Uncodin/bypass) to set it to a textview and the difference is night and day.
Rendering lists works well when they have another text element separating them:
But when they follow each other (e.g. a numerical list followed by an item list), the second one is of the same type of the first, plus some random empty spaces are added.
Is this, as I think, a rendering error? Is there anything I can do to fix this from outside the library?
Thanks
Hi,
it would be a really cool feature to be able to edit directly in the parsed markdown.
As a reference, see ownCloud Notes, which is using mdEdit (Javascript Library)
Best Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.