We offer multiple solutions on how you can run GroupDocs.Markdown examples, by building your own or using our back-end or front-end examples.
Build a project from scratch
You can build a project from scratch using Apache Maven from the command line or using IntelliJ IDEA. We’ll step you through both cases.
Build a project using Maven
Make sure you have a JDK 8 or later and Maven installed. Verify with java -version and mvn -version.
Create a project by executing mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=markdown-demo -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false in your terminal.
Navigate to the markdown-demo directory by executing the cd markdown-demo command.
Add the GroupDocs repository and the com.groupdocs:groupdocs-markdown dependency to pom.xml, following the Installation guide.
Edit src/main/java/com/mycompany/app/App.java and add the following lines to the main method:
business-plan.docx is a sample file used in this example. Click here to download it.
Replace the documentPath value with the actual path to the document you’re going to convert.
Build and run your project.
The converted document is written to converted.md in the project’s working directory.
Run back-end examples
You can find many back-end examples in our GitHub repository. You can either download the ZIP file from here or clone the repository from GitHub using your favorite Git client. In case you download the ZIP file, extract the folders on your local disk.
Navigate to the Examples directory and open its pom.xml in IntelliJ IDEA, Eclipse, or NetBeans.
Open the RunExamples.java file and uncomment the example(s) that you would like to run.
Optionally, you can set the path to the license in the Utils.java file.
If you like to add or improve an example, we encourage you to contribute to the project. All examples in this repository are open source and can be freely used in your own applications. To contribute, you can fork the repository, edit the code and create a pull request. We will review the changes and include them in the repository if found helpful.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.