Mark Down Previewer
How do I make an mark down previewer?
What is a mark down previewer? How do you make a mark down previewer? This script and codes were developed by Jimmy Lin on 11 December 2022, Sunday.
Mark Down Previewer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mark Down Previewer</title> <meta name="viewport" content="device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="container"> <div class="render-target"></div> </div>
</body> <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Mark Down Previewer - Script Codes CSS Codes
body { margin: 20px;
}
Mark Down Previewer - Script Codes JS Codes
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var App = function (_React$Component) { _inherits(App, _React$Component); function App(props) { _classCallCheck(this, App); var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); _this.state = { markdown: "" }; return _this; } App.prototype.handleChange = function handleChange(event) { this.setState({ markdown: event.target.value }); }; App.prototype.render = function render() { return React.createElement( "div", { className: "row" }, React.createElement( "div", { className: "col-xs-6" }, React.createElement( "h1", null, " Markdown " ), React.createElement("textarea", { onChange: this.handleChange.bind(this), value: this.state.markdown, rows: "10", style: { width: "300" } }) ), React.createElement( "div", { className: "col-xs-6" }, React.createElement( "h1", null, " Preview " ), React.createElement("div", { dangerouslySetInnerHTML: { __html: marked(this.state.markdown) } }) ) ); }; return App;
}(React.Component);
ReactDOM.render(React.createElement(App, null), document.querySelector('.render-target'));
Developer | Jimmy Lin |
Username | odylic |
Uploaded | December 11, 2022 |
Rating | 3 |
Size | 3,062 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Tic Tac Toe Game | 2,701 Kb |
TwitchTV JSON API 2 | 2,691 Kb |
Portfolio Trial 1 | 3,730 Kb |
Wikipedia Viewer | 2,333 Kb |
Calculator | 2,544 Kb |
Random Quote Generator | 2,674 Kb |
Local Weather | 2,560 Kb |
Firefly tribute | 2,476 Kb |
Twitch JSON API | 2,556 Kb |
Simon Game | 3,485 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Slider css only | Armandobau | 2,161 Kb |
Factorial | KeithleySLHS | 1,158 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
JS Countdown Timer | Ayoungh | 2,435 Kb |
Find The Penguin | Lelder | 2,212 Kb |
Colorful Sliders | Chanrith | 1,246 Kb |
Delete Hover | Chungman93 | 2,557 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!