$html to markdown

Allows you to convert HTML to markdown.


Example

Running the following code will set the code to be converted from HTML to markdown as variable "#markdown":

<!DOCTYPE html>
<html>
<body>
<p>This is first Paragraphs</p>
 <p>This is Second Paragraphs</p>
<img src="../../jix/w2t.png" width="380" height="70" />  <!--Image File-->
<a href="http://www.way2tutorial.com">Web Development Tutorial</a>
 <h1> Heading Tag </h1>
 <h2> Heading Tag </h2>
 
 <h5> Heading Tag </h5>
 <h6> Heading Tag </h6>
 <textarea cols="60" rows="5" style="background-color:orange;" >
I like web tutorial because.....
</textarea>
<!-- HTML Example by Way2Tutorial.com -->
<div style="height:100px;width:400px;overflow:scroll;">
Scroll box example is overflow text is automatic set in scroll in scrollbar....
</div>
<p><a href="http://www.way2tutorial.com/html/example/index.php">HTML Example</a></p>

</body>
</html>

This is will shown in the alert box.

set(#markdown,$plugin function("Document Automation.dll", "$html to markdown", "<!DOCTYPE html>
<html>
<body>
<p>This is first Paragraphs</p>
 <p>This is Second Paragraphs</p>
<img src=\"../../jix/w2t.png\" width=\"380\" height=\"70\" />  <!--Image File-->
<a href=\"http://www.way2tutorial.com\">Web Development Tutorial</a>
 <h1> Heading Tag </h1>
 <h2> Heading Tag </h2>
 
 <h5> Heading Tag </h5>
 <h6> Heading Tag </h6>
 <textarea cols=\"60\" rows=\"5\" style=\"background-color:orange;\" >
I like web tutorial because.....
</textarea>
<!-- HTML Example by Way2Tutorial.com -->
<div style=\"height:100px;width:400px;overflow:scroll;\">
Scroll box example is overflow text is automatic set in scroll in scrollbar....
</div>
<p><a href=\"http://www.way2tutorial.com/html/example/index.php\">HTML Example</a></p>

</body>
</html>"),"Global")
alert(#markdown)

Was this helpful?

Previous Article

$html different

Next Article

$html to xhtml