h1 title
h2 title
h3 title
color and size rendered failure!
<font color=#00ffff> is color blue? </font>
<font color=gray size=72>color=gray</font>
<font color=#00ffff> is color blue? </font>
<font color=gray size=72>color=gray</font>
Hello,
Misago editor doesn't support presentational size and color by design - forum users shouldn't decide how things should look like - it is up to site designer.
But our message parser is extensive, so it is possible to create plugin that adds [color=]
and [size=]
bbcodes if forum administrator opts for it.
First of all, thanks for the quick response!
for eg, for english-study kind of forum,
first, user/moderator posted a meterial with some introduction, it should looks beatiful, at least with correct font size and color. then other users follow it and post their view points.
do you have document for how to create the plugin for the message parser? in fact, besides the color
and size
, iframe
tag (for insert vedio from into the forum) is also necceary, i think. as described in another thread
Here is documentation for plugging into message parser: misago.gitbook.io/docs/markup
Here is documentation for python-markup that Misago uses to parse messages: python-markdown.github.io/extensions/api/#extendmarkdown
You will want to define custom extend_markdown(md)
looking like this:
from markdown.extensions import Extension
class MyExtension(Extension):
def extendMarkdown(self, md, md_globals):
# Insert instance of 'mypattern' before 'references' pattern
md.inlinePatterns.add('mypattern', MyPattern(md), '<references')
def extend_markdown(md):
extension = MyExtension()
extension.extendMarkdown(md)