使用命令行将MediaWiki wikitext格式转换为HTML [英] Convert MediaWiki wikitext format to HTML using command line

查看:507
本文介绍了使用命令行将MediaWiki wikitext格式转换为HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我倾向于写出大量的文档,所以MediaWiki格式对我来说很容易理解,它节省了我很多时间比写传统的HTML。然而,我也写一个博客,发现从键盘切换到鼠标,所有的时间输入正确的HTML标签增加了很多时间。我想在Mediawiki语法中撰写我的文章,然后将其转换为HTML以便在我的博客上使用。

I tend to write a good amount of documentation so the MediaWiki format to me is easy for me to understand plus it saves me a lot of time than having to write traditional HTML. I, however, also write a blog and find that switching from keyboard to mouse all the time to input the correct tags for HTML adds a lot of time. I'd like to be able to write my articles in Mediawiki syntax and then convert it to HTML for use on my blog.

我已经尝试过Google需要更好的命名,因为我没有找到任何东西。

I've tried Google-ing but must need better nomenclature as surprisingly I haven't been able to find anything.

我使用Linux,并且希望从命令行执行此操作。

I use Linux and would prefer to do this from the command line.

任何人都有任何想法或想法?

Any one have any thoughts or ideas?

推荐答案

在这里采取的一个好的路线将是学习一种通用的标记语言,如restucturedtext或markdown,然后能够从那里转换。发现了一个名为 pandoc ,可以将它们转换为HTML和Mediawiki。欣赏帮助。

Looked into this a bit and think that a good route to take here would be to learn to a general markup language like restucturedtext or markdown and then be able to convert from there. Discovered a program called pandoc that can convert either of these to HTML and Mediawiki. Appreciate the help.

这篇关于使用命令行将MediaWiki wikitext格式转换为HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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