HenrikRoos/imdb-markup-syntax — pull request #11 by danhunsaker (2014-07-09 01:56:47+00:00)
Title: Added support for one-off tags with embedded IDs

New proposed feature

This PR relies on PR #10 to merge cleanly, as the implementation needs access to longer tags.
That means that it is automatically included in this PR as well, and has become redundant.

Added support for embedded IDs in a one-off style.
- User places `[imdb:title(tt0137523)]` in a post to quickly generate a link.
- New code searches for `[imdb:()]` and converts it to `[imdb-:]`.
- New code also adds `[imdb-:id()]` to the beginning of the post.
- Processing continues normally from there.

Also works with `[imdblive:()]`.

Tested in PHPStorm 7 to work correctly.

Signed-off-by: Dan Hunsaker