Welcome | Get started | Dive into Lino | Contribute | Topics | Reference | More

lino.modlib.memo

See memo : The memo parser.

Adds functionality for using memo commands in your text fields.

parser

See introduction in memo : The memo parser.

Classes

Plugin(site, app_label, app_name, ...)

Base class for this plugin.

class lino.modlib.memo.Plugin(site, app_label, app_name, app_module, needed_by, configs: dict)

Bases: Plugin

Base class for this plugin.

parser

An instance of lino.modlib.memo.parser.Parser.

front_end = None

The front end to use when writing previews.

If this is None, Lino will use the default front end (lino.core.site.Site.web_front_ends).

Used on sites that are available via more than one web front ends. The site maintainer must then decide which front end is the primary one.

For example, if you have two sites jane (extjs) and hobbit (react), in the settings.py file for Jane you will say:

def get_installed_plugins(self):
    yield super(Site, self).get_installed_plugins()
    yield 'lino_react.react'

def get_plugin_configs(self):
    for i in super(Site, self).get_plugin_configs():
        yield i
    yield ('memo', 'front_end', 'react')