• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Support

how to set color and size?

mountain369
Sept. 10, 2018
chat_bubble_outline 4
  • link
    mountain369
    Members 4 posts
    Sept. 10, 2018, 3:02 a.m. Sept. 10, 2018, 3:02 a.m.
    link

    h1 title

    h2 title

    h3 title


    external URL
    internal URL


    color and size rendered failure!

    <font color=#00ffff> is color blue? </font>
    <font color=gray size=72>color=gray</font>

    @mountain369

    quote works well

  • link
    rafalp
    Project Lead 2028 posts
    Sept. 10, 2018, 11:03 a.m. Sept. 10, 2018, 11:03 a.m.
    link

    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.

  • link
    mountain369
    Members 4 posts
    Sept. 10, 2018, 5:03 p.m. Sept. 10, 2018, 5:03 p.m.
    link

    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.

  • link
    mountain369
    Members 4 posts
    Sept. 10, 2018, 5:08 p.m. Sept. 10, 2018, 5:08 p.m.
    link

    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

  • link
    rafalp
    Project Lead 2028 posts
    Sept. 10, 2018, 7 p.m. Sept. 10, 2018, 7 p.m.
    link

    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)
    
arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago