GithubHelp home page GithubHelp logo

indrajithbandara / convertmymediawikitoqiita Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tsutomunakamura/convertmymediawikitoqiita

0.0 2.0 0.0 12 KB

This is a program that converts form of my mediawiki to form of Qiita.

Python 100.00%

convertmymediawikitoqiita's Introduction

ConvertMyMediawikiToQiita

This is a program that converts form of my mediawiki to form of Qiita.

Convert Examples

  • Code tag
./Convert.py << '__EOF__'
<code>hoge</code>
<span>fuga</span>
__EOF__
`hoge`
<span>fuga</span>
  • br tag
./Convert.py << '__EOF__'
hoge<br>
fuga<br />
__EOF__

result:

hoge
fuga
  • Headings
./Convert.py << '__EOF__'
= hoge =
====== fuga ======
__EOF__

result:

# hoge 
###### fuga
  • Definishons
./Convert.py << '__EOF__'
;aaa
:aaaa
:aaaaa

;ccc
:ccc
;ddd
:ddd
__EOF__

result:

<dl>
  <dt>aaa</dt>
  <dd>aaaa</dd>
  <dd>aaaaa</dd>
</dl>

<dl>
  <dt>ccc</dt>
  <dd>ccc</dd>
  <dt>ddd</dt>
  <dd>ddd</dd>
</dl>
  • Code segment
./Convert.py << '__EOF__'
<syntaxhighlight lang="ruby">
puts 'Hello, world!'
</syntaxhighlight>

Here is not text code segment.
 Here is text
 code segment.
__EOF__

result:

```ruby
puts 'Hello, world!'
``` 

Here is not text code segment.
```text
Here is text
code segment.
``` 

(In actually, no multibyte blank will be output)

  • Code segment title in my own rule
./Convert.py << '__EOF__'
This is tutorial of Java.
* HelloWorld.java
<syntaxhighlight lang="java">
public class HelloWorld {
    public static void main(String args[]) {
        System.out.println("Hello world.");
    }
}
</syntaxhighlight>
__EOF__

result:

This is tutorial of Java.
```java:HelloWorld.java
public class HelloWorld {
    public static void main(String args[]) {
        System.out.println("Hello world.");
    }
}
``` 

(In actually, no multibyte blank will be output)

  • Table segment
$ ./Convert.py << '__EOF__'
{| class="wikitable"
|+ align="top" style="text-align: left" |''テーブルのサンプル''
|-
! subject1
! subject2
! subject3
|-
| text1
| text2
| text3
|-
| text1 || text2 || text3
|-
| text1 !! text2 || text3
|-
! text1 !! text2 !! text3
|-
! text1 || text2 !! text3
|}
__EOF__

* テーブルのサンプル
<table><tbody>
  <tr>
    <th> subject1</th>
    <th> subject2</th>
    <th> subject3</th>
  </tr>
  <tr>
    <td> text1</td>
    <td> text2</td>
    <td> text3</td>
  </tr>
  <tr>
    <td> text1 </td><td> text2 </td><td> text3</td>
  </tr>
  <tr>
    <td> text1 </td><th> text2 </th><td> text3</td>
  </tr>
  <tr>
    <th> text1 </th><th> text2 </th><th> text3</th>
  </tr>
  <tr>
    <th> text1 </th><td> text2 </td><th> text3</th>
  </tr>
</tbody></table>

Reference

##Markdowns that be used in Qiita http://qiita.com/Qiita/items/c686397e4a0f4f11683d

convertmymediawikitoqiita's People

Contributors

tsutomunakamura avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.