格式化(重新包装)Markdown文档以符合给定的行宽 [英] Format (rewrap) Markdown document to adhere to given line width

查看:112
本文介绍了格式化(重新包装)Markdown文档以符合给定的行宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很长的Markdown文档,其行长超过80个字符.我希望它遵循一个样式指南,该指南规定行数不能超过80个字符(代码段和表除外).在遵循Markdown语法的同时,有没有一种工具可以让编辑器或编辑器扩展程序重新格式化(重新包装)文档?

I have a long Markdown document with lines longer than 80 characters. I would like it to adhere to a style guide prescribing lines no longer than 80 characters (with exceptions of code snippets and tables). Is there a tool an editor or an editor extension reformat (rewrap) the document while respecting Markdown syntax?

推荐答案

更漂亮( https://prettier.io )(可以作为许多编辑器的插件使用),似乎是一个不错的选择.

Prettier (https://prettier.io), which is available as a plug-in for many editors, seems like a good option.

这篇关于格式化(重新包装)Markdown文档以符合给定的行宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆