- Advanced TypeScript Programming Projects
- Peter O'Hanlon
- 216字
- 2021-06-24 13:27:08
Creating a Markdown Editor with TypeScript
It is hard to deal with content on the internet without encountering markdown. Markdown is a simplified way to create content using plain text that is easily converted into simple HTML. In this chapter, we are going to investigate what it takes to create a parser that will convert a subset of the markup format into HTML content. We will automatically convert relevant tags into the first three header levels, the horizontal rule, and paragraphs.
By the end of this chapter, we will have covered how to create a simple Bootstrap web page and reference the JavaScript generated from our TypeScript, as well as hooking up to a simple event handler. We will also cover how to create classes using simple design patterns and how to design classes with single responsibilities, which are techniques that serve us well as professional developers.
The following topics will be covered in this chapter:
- Creating a Bootstrap page that overrides the Bootstrap styling
- Choosing which tags we are going to use in our markdown
- Defining requirements
- Mapping our markdown tag types to HTML tag types
- Storing our converted markdown in a custom class
- Using the visitor pattern to update our document
- Using the chain-of-responsibility pattern to apply tags
- Hooking this back to our HTML
- Mastering ElasticSearch
- 樂學Windows操作系統(tǒng)
- Linux實戰(zhàn)
- Puppet實戰(zhàn)
- 精通Linux內(nèi)核開發(fā)
- SOA實踐者說
- Linux Shell編程從入門到精通(第2版)
- 新手學電腦從入門到精通(Windows 10+Office 2016版)
- Linux運維最佳實踐
- 細說Linux基礎(chǔ)知識
- 無蘋果不生活 The New iPad隨身寶典
- Python UNIX和Linux系統(tǒng)管理指南
- Distributed Computing with Go
- Linux網(wǎng)絡(luò)操作系統(tǒng)項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- 大學計算機應(yīng)用基礎(chǔ)實踐教程(Windows 7+MS Office 2010)