官术网_书友最值得收藏!

Understanding the project overview

Now that we have a grasp of some of the concepts that we are going to cover throughout the rest of this book, we are going to start putting them into practice by creating a project that parses a very simple markdown format while the user types into a text area and displays the resulting web page alongside it. Unlike full markdown parsers, we are going to concentrate on formatting the first three header types, the horizontal rule, and paragraphs. The markup is restricted to breaking lines down by newline characters and looking at the start of a line. It then determines whether or not a particular tag is present and, if not, it assumes the current line is a paragraph. The reason we have chosen this implementation is because it is a simple task to pick up immediately. While it is simple, it offers sufficient depth to show that we are going to tackle topics that require us to give real thought to how we will structure the application.

The user interface (UI), uses Bootstrap, and we will look at how to hook up to a change event handler and how to get and update HTML content from the current web page. This is what our project will look like when we have finished:

Now that we have our overview, we can move on to getting started with creating the HTML project.

主站蜘蛛池模板: 张家港市| 宁武县| 肇州县| 绥棱县| 武乡县| 富锦市| 樟树市| 乃东县| 金山区| 化州市| 通许县| 利辛县| 建宁县| 万荣县| 安丘市| 仙居县| 四会市| 洛宁县| 乌海市| 固原市| 闽侯县| 泰兴市| 雅安市| 塔河县| 图片| 房山区| 漠河县| 平乐县| 镇康县| 石首市| 南投市| 邳州市| 浦城县| 常宁市| 蕉岭县| 张家界市| 定陶县| 大庆市| 同江市| 泰兴市| 岳普湖县|