Heim  >  Artikel  >  Backend-Entwicklung  >  php有没有把html生成markdown格式的txt

php有没有把html生成markdown格式的txt

WBOY
WBOYOriginal
2016-06-06 20:51:351092Durchsuche

php有没有把html生成markdown格式的txt?

回复内容:

php有没有把html生成markdown格式的txt?

I have three words for you:

Dont try this

不可能

但是如果你想让你的html文档『看起来』像markdown,你可以看看这个CSS

http://fvsch.com/code/remarkdown/

你可以尝试这个扩展

http://michelf.ca/projects/php-markdo...

注意并非所有的html tag都会支持,请仔细阅读文档确认它可以满足你的需求。

http://git.oschina.net/shooke/corephp2/blob/master/CorePHP/ext/Markdown.class.php
看着,php实现的可以实现md与html相互转化

http://git.oschina.net/shooke/corephp2/blob/master/CorePHP/ext/Markdow...
好东西

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn