Skip to content
Uses marked-js to convert markdown to HTML and render it in the browser.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
css
img Toggle slide effect for upper display Mar 15, 2016
js
.gitignore Acts as an app now. Basic ... but works. Dec 8, 2015
Markdown App - Online Converter with JS.md Switched 'copy-to-clipboard' impl to use clipboard.js. Also, included… Dec 14, 2015
README.md Update syntax highlighter brush for C# to additionally use 'cs' alias. Jun 22, 2017
about-minification.md
favicon.ico Syntax highlight md to html code. Jun 1, 2017
index.html
markdown-256-48-32-24-20-16.ico
minify.settings.txt
unminified-index.html
x-md-16x16.png Syntax highlight md to html code. Jun 1, 2017

README.md

YAM2H

Yet Another Markdown To HTML Converter

See how you can enable your site with markdown capability

YAM2H demonstrates the conversion of markdown to HTML via JavaScript in a web browser.

  Demo   |     Blog

Markdown, HTML & Results Displayed

  • Write markdown in your browser — or click buttons to generate example markdown for you
  • Click the "Convert" button
  • Another text box displays the generated HTML code
  • The browser then renders the HTML code, displaying the final result

Dependencies

Update: June 22, 2017

Now Using the Google Closure Compiler: The /js folder contains a batch file which runs the compiler and produces app.cc.min.js. For production deployment to a web server this file is manually renamed to app.min.js.

See also: Carl's personal blog article on the subject.

Listing of `./js/cc.bat

REM Google closure compiler settings
REM Breaking long lines requires space, carot (^), newline, space, continue command

java -jar closure-compiler-v20170521.jar ^
 --compilation_level SIMPLE_OPTIMIZATIONS ^
 --js ../../../../libs/syntax_highlighter/js/shCore.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushJScript.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushCss.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushXml.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushBash.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushCpp.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushCSharp.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushDiff.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushJava.js ^
 --js ../../../../libs/syntax_highlighter/js/shBrushSass.js ^
 --js foundation/foundation.js  ^
 --js marked-lib/marked.js  ^
 --js clipboard.min.js ^
 --js file-drop/jQuery.FileDrop.all.js ^
 --js app.js ^
 --js_output_file app.cc.min.js ^
 --externs externs.js  ^
 -W=default

pause
 
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.