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

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.

主站蜘蛛池模板: 同德县| 阜平县| 抚松县| 汝州市| 新河县| 陇川县| 鸡东县| 武鸣县| 商河县| 汾阳市| 揭阳市| 乃东县| 彩票| 增城市| 义乌市| 和田市| 五大连池市| 乌鲁木齐县| 宝清县| 永嘉县| 宜丰县| 全州县| 黑水县| 黄龙县| 佛坪县| 稻城县| 会同县| 沐川县| 楚雄市| 桂林市| 长垣县| 高密市| 甘南县| 尼勒克县| 岳池县| 海安县| 台江县| 凤山县| 南靖县| 丹凤县| 定陶县|