Markdown生成PDF文件

目录

需求


Markdown文本生成PDF文件,排版整齐,有页眉页脚。

VSCODE安装插件


Markdown PDF(yzane)

会自动安装一个chromium内核

使用



选择md文件,然后在命令终端输入export,选择带有pdf的那项

效果


README.md

# TangPrimer-20K-example
---
- [# TangPrimer-20K-example](#-tangprimer-20k-example)
- [Note](#note)
  - [Error code:RP2017](#error-coderp2017)
- [Reference](#reference)
  - [Lite-bottom test project](#lite-bottom-test-project)
  - [DDR-Test](#ddr-test)
  - [SPI_lcd](#spi_lcd)
  - [RBG_lcd](#rbg_lcd)
  - [Cam2lcd](#cam2lcd)

## Note

### Error code:RP2017

When you meet error code `PR2017`, just enable corresponding IO as regular IO.

![rp2017](./.assets/rp2017.png)

Click `Project` in top menu bar and choose `Configuration`, then enable the corresponding Dual Purpose Pin to deal with this error.


## Reference

### [Lite-bottom test project](./Lite-bottom%20test%20project/test_board/README.md)

This is the test project which is used for testing Lite-bottom and core board(Factory test).
Including the DDR-Test project and another demo containing all other usable IO blink.

### [DDR-Test](./DDR-test/LicheeTang20K_DDR_Test/README.md)

Thanks [ZiyangYE](https://github.com/ZiyangYE) providing this example.
Using serial-communication with 115200 baudrates to shows result.

### SPI_lcd

This is an example driving 1.14 inch spi screen.

![spi_lcd](./.assets/spi_lcd.jpg)

### RBG_lcd

This example contains 4 kind of different color bar data in source code, this project just use one color bar data for example.

![rgb](./.assets/rgb.jpg)

### Cam2lcd

There are 4 projects, their name rules are as followings:

| Folder name | Camera | Screen resolution | Frame storge mode |
| --- | --- | --- | --- |
|OV5640_LCD480_DDR3| OV5640 | 480x272 | DDR3 |
|OV5640_LCD800_DDR3| OV5640 | 800x480 | DDR3 |
|OV5640_LCD480_FIFO| OV5640 | 480x272 | FIFO |
|OV5640_LCD800_FIFO| OV5640 | 800x480 | FIFO |

These are only for testing, and if you want better results, you need program on yourself.

After burning the .fs bitstream into fpga, press `S0` button to reset to get right display.

![cam2lcd](./.assets/cam2lcd.jpg)

### Micarray

There is demo for micarray board.

然后导出


在md文件同目录下可找到导出的pdf文件




对比

  1. 使用MWeb导出
  2. 使用易转换在线导出
    [https://www.easeconvert.com/markdown-to-pdf/]
    无法读取本地图片

  3. 使用作业部落在线导出
    [https://www.zybuluo.com/mdeditor#]


    同样不能加载本地图片
  4. 使用哈希文档在线导出
    [https://www.hashspace.cn/markdown/]

posted @ 2022-11-13 18:37  qsBye  阅读(572)  评论(0编辑  收藏  举报