https://github.com/elgg/ecml
Elgg Customizable Markup Language
https://github.com/elgg/ecml
Last synced: 4 months ago
JSON representation
Elgg Customizable Markup Language
- Host: GitHub
- URL: https://github.com/elgg/ecml
- Owner: Elgg
- Archived: true
- Created: 2011-06-14T11:11:24.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-05-07T16:37:41.000Z (over 11 years ago)
- Last Synced: 2025-03-04T08:43:24.003Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 1.26 MB
- Stars: 4
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Elgg Customizable Markup Language
=================================
Overview
---------------
ECML is a lightweight markup language for inserting content into posts and comments.
It uses square brackets to set off its tags like so:
```
[youtube src="http://www.youtube.com/watch?v=kCpjgl2baLs"]
```
Each tag consists of a keyword and an optional set of attributes. This plugin is
responsible for parsing the tags. Other plugins handle rendering specific tags
into HTML.
Developers
---------------
A plugin can register for a custom keyword by registering for the 'render:<keyword>',
'ecml' plugin hook where <keyword> is the name of the keyword. Any attributes
are passed in the $params array for the plugin hook. The handler is expected to use
the keyword and attributes to generate HTML and return it to replace the tag in the
final web page.