Git Product home page Git Product logo

markdown-phpbb's Introduction

md2phpBB

This software was done in the bare minimum time to scratch an itch I had.

If you ask me nicely, I'll write some docs and pop it on the CPAN.

I also love patches. Please send them to me. :)

Installing:

This requires Dist::Zilla to install.

$ git clone https://github.com/pjf/Markdown-phpBB.git
$ cd Markdown-phpBB
$ dzil install

Running:

$ md2phpbb somefile.md       # Convert from file
$ echo "*Hello*" | md2phpbb  # ...or from STDIN

Output is always sent to STDOUT.

Why?

I found that phpBB syntax keeps getting in the way, but some of my favourite communities still use it. I use vimperator and vim to write all my text, so a command which lets me write in markdown and convert to phpBB was obvious.

Of most use is %!md2phpbb in vim, which will replace your current buffer (written in markdown) with the phpBB equivalent code. You can even bind it to a key (place in your ~/.vimrc file):

:nmap <F5> :%!md2phpbb<CR>

If you're using vimperator, phpBB will get in the way of using CTRL-I to invoke vim. You can allow CTRL-E (or another key of your choice) to also invoke the editor by adding the following to your ~/.vimperatorrc file:

:inoremap <C-e> <C-i>

Enjoy!

markdown-phpbb's People

Contributors

pjf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.