Skip to content

MikulinDmitry/mda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown
REST service that takes markdown-style text as a POST request body, and returns HTML.
Backlog

  • Lines starting with #, ##, ### etc. become headers <h1/>, <h2/>, <h3/> etc.
  • Simple lines become paragraphs (just a line – > <p>just a line</p>)
  • Text wrapped in * … * becomes emphasized (*lorem* – > <em>lorem</em>
  • `Text wrapped in ** … ** becomes strong (lorem – > lorem)
  • Links support ([example link]( http://example.com/ ) – > <a href= “ http://example.com/ ” >example link</a>)
  • Other than that, no transformation should happen to text


Extra credit

  • Application is deployed somewhere (heroku, jelastic etc.)
  • Authorization
  • Stats are saved into mongodb (e.g. who converted what when)


Example
INPUT:
# Lorem ipsum
Dolor sit amet,
consetetur *sadipscing* elitr,
sed [diam](http://mysite.com) nonumy eirmod tempor

OUTPUT:
<html>
<body>
<h1>Lorem ipsum</h1>
<p>Dolor sit amet,</p>
<p>consetetur <em>sadipscing</em> elitr,</p>
<p>sed <a href=”http://mysite.com”>diam</a> nonumy eirmod tempor</p>
</body>
</html>


Deliverables

  • Source code in a zip archive
  • (extra credit) Deployed application URL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors