Re: [PATCH v2 14/15] md2html-add-asset-postfix-arg

2018-06-19 Thread John Keeping
On Tue, Jun 19, 2018 at 11:55:35AM +0800, Andy Green wrote: > > > On 06/19/2018 03:21 AM, John Keeping wrote: > > On Mon, Jun 18, 2018 at 10:58:26AM +0800, Andy Green wrote: > > >> class AssetMappingExtension(markdown.extensions.Extension): > >> > >> def __init__(self, **kwargs): > >>

Re: [PATCH v2 14/15] md2html-add-asset-postfix-arg

2018-06-18 Thread Andy Green
On 06/19/2018 03:21 AM, John Keeping wrote: On Mon, Jun 18, 2018 at 10:58:26AM +0800, Andy Green wrote: class AssetMappingExtension(markdown.extensions.Extension): def __init__(self, **kwargs): -self.config = {'asset_prefix': ['', 'prefix for relative asset URLs']} +

Re: [PATCH v2 14/15] md2html-add-asset-postfix-arg

2018-06-18 Thread John Keeping
On Mon, Jun 18, 2018 at 10:58:26AM +0800, Andy Green wrote: > Extend md2html with a third argument for URL postfix, like "?h=mybranch" > > Signed-off-by: Andy Green > --- > filters/html-converters/md2html | 17 +++-- > 1 file changed, 11 insertions(+), 6 deletions(-) > > diff --gi

[PATCH v2 14/15] md2html-add-asset-postfix-arg

2018-06-17 Thread Andy Green
Extend md2html with a third argument for URL postfix, like "?h=mybranch" Signed-off-by: Andy Green --- filters/html-converters/md2html | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index