Re: [web2py] Re: MARKMIN - Sanitizing

2019-04-29 Thread Paul Ellis
Hey Villas, thanks. I actually thought that the XML sanitization would break the MARKMIN conversion but it doesn't. I probably should have tested that first. Regards On Mon, Apr 29, 2019 at 7:06 PM villas wrote: > Hi Paul > > If you are worried about saving dodgy text in the DB, you coul

[web2py] Re: MARKMIN - Sanitizing

2019-04-29 Thread villas
Hi Paul If you are worried about saving dodgy text in the DB, you could sanitize it first using XML() e.g. XML('dodgy();**Hello**',sanitize=True).xml() ***Hello*** On Thursday, 25 April 2019 12:19:44 UTC+1, Paul Ellis wrote: > > I am using an editable span with some js to s

[web2py] Re: markmin

2016-05-08 Thread Leonel Câmara
You could extend markmin, I haven't tested but this should work def show_var(text): """ Show a request var in markmin. example usage in markmin: ``x``:show_var return request.vars[text] from functools import partial MARKMINVARS = partial(MARKMIN, extra={'show_var':

RE: [web2py] Re: markmin

2016-05-08 Thread Brian Dang
I'm passing in a get variable called x to the wiki page. I'm trying to read the value of x from the wiki page. Is there a way to do that? -Original Message- From: "Leonel Câmara" Sent: ‎5/‎8/‎2016 7:58 AM To: "web2py-users" Subject: [web2py] Re: markmin

[web2py] Re: markmin

2016-05-08 Thread Leonel Câmara
What do you mean? Markmin is a markup language. What are you trying to do? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message becau

[web2py] Re: MARKMIN problem with email addresses

2015-06-02 Thread Niphlod
I'm quite +1 . techinicality that just works for domain may not for everything else passed to regex_auto, and since eveybody is still typing *www.google.com* rather than *www.google.com.* I'd go with "mainstream" treatment. On Monday, June 1, 2015 at 5:32:44 PM UTC+2, David Manns wrote: > > Wel

Re: [web2py] Re: markmin as separate package

2015-06-02 Thread Gour
Massimo Di Pierro writes: > Feel free to fork and we'll keep it in sync or use your as a subpackage. OK, I'll think about it in case I decide to use it. > Anyway, I strongly recommend > https://github.com/mdipierro/markmin.js/tree/master > instead of the python based markmin. They are not 100

[web2py] Re: markmin as separate package

2015-06-01 Thread Massimo Di Pierro
Feel free to fork and we'll keep it in sync or use your as a subpackage. Anyway, I strongly recommend https://github.com/mdipierro/markmin.js/tree/master instead of the python based markmin. They are not 100% compatible and the latter does a little more but the former does it better. In particul

[web2py] Re: markmin and newline

2015-04-19 Thread Martin Weissenboeck
Solved. I need 2 or more blank lines. :-) 2015-04-19 22:54 GMT+02:00 Martin Weissenboeck : > What I want to do: > I have a table with a textfield and I want to store some markmin-coded > text in this field. But markmin needs an end of line after each paragraph. > How can I add a newline using th

[web2py] Re: Markmin Blockquote

2014-12-28 Thread lyn2py
When I add the newline, the result became two , one at the top and the other at the bottom, specifically: - This is a paragraph in a blockquote + item 1 + item 2 -- item 2.1 -- item 2.2 + item 3 - 0 | 0 | X 0 | X | 0 X | 0 | 0 -:tableclass1 - Outp

[web2py] Re: Markmin Blockquote

2014-12-28 Thread Niphlod
ok, this is far more helpful try with an empty line between - and "This is a paragraph in a blockquote" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Is

[web2py] Re: Markmin Blockquote

2014-12-28 Thread lyn2py
I see niphlod, this is the code: def index(): text = """ ##H2 paragraph text +s +locals +r paragraph text paragraph text ###H3 - This is a paragraph in a blockquote + item 1 + item 2 -- item 2.1 -- item 2.2 + item 3 - 0 | 0 | X 0 | X | 0 X | 0 | 0 ---

[web2py] Re: Markmin Blockquote

2014-12-28 Thread Niphlod
sorry but I'm having problems understanding what's the issue...without proper newlines that will remain a single line and not a blockquote... -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web

[web2py] Re: Markmin Blockquote

2014-12-27 Thread lyn2py
Sorry niphlod, it looks just like that, a single line with no newlines... This is a paragraph in a blockquote + item 1 + item 2 -- item 2.1 -- item 2.2 + item 3 - 0 | 0 | X 0 | X | 0 X | 0 | 0 -:tableclass1 On Sunday, December 28, 2014 12:45:09 AM UTC+8, Niphlod wrote: > > if y

[web2py] Re: Markmin Blockquote

2014-12-27 Thread Niphlod
if you don't paste your contents in a code block on the forum, it's impossible to tell you what's wrong because "normal posts" don't keep spacing and newlines On Saturday, December 27, 2014 2:53:02 PM UTC+1, lyn2py wrote: > > Hi guys I'm trying MARKMIN here and the block quotes I have look l

[web2py] Re: MARKMIN image margin

2014-09-14 Thread Massimo Di Pierro
You should do that via CSS. One should be able to user markup languages to change style of elements. On Sunday, 14 September 2014 12:19:32 UTC-5, olivier hubert wrote: > > Is it possible to add a margin with a MARKMIN syntax to a image ? > -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: MARKMIN italics not working with "didn't"

2014-08-10 Thread lyn2py
Thanks guys. Going to trunk now :) On Sunday, August 10, 2014 10:30:37 PM UTC+8, Leonel Câmara wrote: > > I think changing markmin regex_em from ''(?P[^\s']+(?: > +[^\s']+)*)'' to ''(?P([^\s']| |'(?!'))+)'' would solve this. -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

[web2py] Re: MARKMIN italics not working with "didn't"

2014-08-10 Thread Massimo Di Pierro
good catch. Fixed in trunk. On Sunday, 10 August 2014 09:30:37 UTC-5, Leonel Câmara wrote: > > I think changing markmin regex_em from ''(?P[^\s']+(?: > +[^\s']+)*)'' to ''(?P([^\s']| |'(?!'))+)'' would solve this. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: MARKMIN italics not working with "didn't"

2014-08-10 Thread Leonel Câmara
I think changing markmin regex_em from ''(?P[^\s']+(?: +[^\s']+)*)'' to ''(?P([^\s']| |'(?!'))+)'' would solve this. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report I

[web2py] Re: Markmin components

2014-01-16 Thread Janko Strusa
How can I implement this in a view. I am not sure how to call that markmin action to be used instead of MARKMIN helper. Dana srijeda, 8. svibnja 2013. 17:23:24 UTC+2, korisnik Massimo Di Pierro napisao je: > > There is an "official" syntax for this. > > @{component:controller/function/args}

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-21 Thread peibol
Yes, I've tested it with the google chart api and it works. I plan to use it with a template for pypdf to minimize alignment issues. Although it would be better if we could just "render" the html produced by mathajax (or similar) but server side and then use it. El viernes, 21 de junio de 2013

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-21 Thread Massimo Di Pierro
mathjax is not an option because it is JS and cannont be embedded in PDF. You can, in principle, generate images using google and and embed those. The alignment and font sizes will be a nightmare. On Thursday, 20 June 2013 16:35:04 UTC-5, peibol wrote: > > Could it be feasible to use mathjax to

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
Could it be feasible to use mathjax to render the latex to be put inside the pdf? Or the google api to generates the image and then add it to the pdf? Thanks Massimo El jueves, 20 de junio de 2013 23:00:25 UTC+2, Massimo Di Pierro escribió: > > You are right. No latex on GAE. I cannot think of

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread Massimo Di Pierro
You are right. No latex on GAE. I cannot think of any other way to render formulas in PDF without latex. On Thursday, 20 June 2013 12:04:18 UTC-5, peibol wrote: > > Does it requires pdflatex, doesn't it? I think it's not supported in GAE. > > El jueves, 20 de junio de 2013 18:59:44 UTC+2, Massimo

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread Massimo Di Pierro
Why not use markmin2latex or markmin2pdf (itsuses latex inside) On Thursday, 20 June 2013 17:53:58 UTC+2, peibol wrote: > > Hi all > > I'm getting in love with web2py, but I'm just a newcomer, and need some > advice. Take into account that I finally want to deploy my app on GAE (so I > can't ins

[web2py] Re: Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
Does it requires pdflatex, doesn't it? I think it's not supported in GAE. El jueves, 20 de junio de 2013 18:59:44 UTC+2, Massimo Di Pierro escribió: > > Why not use markmin2latex or markmin2pdf (itsuses latex inside) > > On Thursday, 20 June 2013 17:53:58 UTC+2, peibol wrote: >> >> Hi all >> >> I'

[web2py] Re: Markmin components

2013-05-08 Thread villas
Thanks On Wednesday, May 8, 2013 4:23:24 PM UTC+1, Massimo Di Pierro wrote: > > There is an "official" syntax for this. > > @{component:controller/function/args} > > To enable this and enable OEMBED I do: > > def markmin(body): > from gluon.contrib.autolinks import expand_one > def co

[web2py] Re: Markmin components

2013-05-08 Thread Massimo Di Pierro
There is an "official" syntax for this. @{component:controller/function/args} To enable this and enable OEMBED I do: def markmin(body): from gluon.contrib.autolinks import expand_one def component(text): items = text.split('/') controller, function, args = items[0],

[web2py] Re: Markmin components

2013-05-08 Thread villas
For anyone interested in my monologue... Function to my previous ideas, a function as follows could handle both internal and external URLs. I also included a simple check for allowed domains: def __component(text): if text and text.lower().strip().startswith('http'): from urlparse

[web2py] Re: Markmin components

2013-05-07 Thread villas
I can do something like this... mytext = """ ``default/get_cms_article/4``:component """ def __component(text): items = text.split('/') controller, function, args = items[0], items[1], items[2:] return LOAD(controller, function, args=args, ajax=True).xml() MARKMIN_ENV = dict( c

Re: [web2py] Re: Markmin: How to align text?

2013-04-15 Thread Massimo Di Pierro
You cannot at the markmin level. You have to do that with CSS. On Monday, 15 April 2013 02:06:11 UTC-5, Johann Spies wrote: > > I have seen that. I could not find any indication in the documentation on > how to align text. > > The word 'align' appears only in a section which explains how to al

Re: [web2py] Re: Markmin: How to align text?

2013-04-15 Thread Johann Spies
I have seen that. I could not find any indication in the documentation on how to align text. The word 'align' appears only in a section which explains how to align an image. Regards Johann On 10 April 2013 15:20, Massimo Di Pierro wrote: > Also here: > > http://web2py.com/init/static/markmin.

[web2py] Re: Markmin and spell-checking

2013-04-14 Thread Alan Etkin
> > I'm using the Libre Office Writer corrector, but when I save the changes > the files do not render correctly > I think I found the problem. Writer inserts a "BOM prologue" when importing text files and it is being saved with the files when I apply the changes. This prevents the markmin ren

[web2py] Re: Markmin: How to align text?

2013-04-10 Thread Massimo Di Pierro
Also here: http://web2py.com/init/static/markmin.html On Wednesday, 10 April 2013 07:54:57 UTC-5, Alan Etkin wrote: > > In Markdown I can do this (found on >> http://bywordapp.com/markdown/guide.html): >> > > markmin is documented in web2py/gluon/contrib/markmin/ > > There's a markmin.pdf file

[web2py] Re: Markmin: How to align text?

2013-04-10 Thread Alan Etkin
> > In Markdown I can do this (found on > http://bywordapp.com/markdown/guide.html): > markmin is documented in web2py/gluon/contrib/markmin/ There's a markmin.pdf file with a quick start guide and the complete help with examples is included in the markmin2html.py module docstrings. I don't t

[web2py] Re: Markmin and multiple HTML5 media sources

2013-04-09 Thread Massimo Di Pierro
OK. I think I am done with my changes. On Tuesday, 9 April 2013 16:37:03 UTC-5, Alan Etkin wrote: > > I will take a patch but wait 1h. I am about to add two changes to allow >> ,;# in autolinks (amazon images contain ,) and allow links in images. >> > > Thanks Massimo, I don't have a patch yet, I

[web2py] Re: Markmin and multiple HTML5 media sources

2013-04-09 Thread Alan Etkin
> > I will take a patch but wait 1h. I am about to add two changes to allow > ,;# in autolinks (amazon images contain ,) and allow links in images. > Thanks Massimo, I don't have a patch yet, If I can make one I'll submit it with a new issue in the project page for revision. -- --- You rece

[web2py] Re: Markmin and multiple HTML5 media sources

2013-04-09 Thread Massimo Di Pierro
I will take a patch but wait 1h. I am about to add two changes to allow ,;# in autolinks (amazon images contain ,) and allow links in images. On Tuesday, 9 April 2013 13:14:21 UTC-5, Alan Etkin wrote: > > Is there any markmin notation for adding html5 audio/video with multiple > sources? > > For

[web2py] Re: Markmin images width

2013-01-26 Thread Massimo Di Pierro
You have a good point. This needs to be changed. Please open a ticket and, if you can, submit a patch. Massimo On Saturday, 26 January 2013 09:17:25 UTC-6, Dick Schrauwen wrote: > > The full question is at http://gutsup.com/oneletter/138 > > On Saturday, January 26, 2013 4:10:32 PM UTC+1, Dick S

[web2py] Re: Markmin images width

2013-01-26 Thread Dick Schrauwen
The full question is at http://gutsup.com/oneletter/138 On Saturday, January 26, 2013 4:10:32 PM UTC+1, Dick Schrauwen wrote: > > > hey, > I had some problems with adding code, so my question is at: > > > The qestion boils down to: > Why is image-width in markin rendered as htmlattribute and not

[web2py] Re: MARKMIN line break

2012-12-06 Thread Andrew W
I assume you are no longer talking about markmin. I didn't think you could use {{ }} in markmin. Correct ? On Sunday, December 2, 2012 10:51:49 PM UTC+13, apps in tables wrote: > > Thank you... > > On Sunday, December 2, 2012 7:45:50 AM UTC+3, Massimo Di Pierro wrote: >> >> You are missing

[web2py] Re: MARKMIN line break

2012-12-02 Thread apps in tables
Thank you... On Sunday, December 2, 2012 7:45:50 AM UTC+3, Massimo Di Pierro wrote: > > You are missing that you need to generate html and {{=anything}} > always escape anything. > > You want: > > {{=(row.body1)}}{{=(row.body2)}} > > or > > {{=CAT(row.body1,BR(),row.body2)}} > > or > > {{=CAT(r

[web2py] Re: MARKMIN line break

2012-12-01 Thread Massimo Di Pierro
You are missing that you need to generate html and {{=anything}} always escape anything. You want: {{=(row.body1)}}{{=(row.body2)}} or {{=CAT(row.body1,BR(),row.body2)}} or {{=CAT(row.body1,XML(''),row.body2)}} or {{=XML(row.body1+''+row.body2, sanitize=True)}} The latter is not quite

[web2py] Re: MARKMIN line break

2012-12-01 Thread Massimo Di Pierro
On Saturday, 1 December 2012 21:43:22 UTC-6, apps in tables wrote: > > > I am trying these: > > {{=(row.body1)+ \n\n +(row.body2)}} > > {{=(row.body1)+ ' \n\n '+(row.body2)}} > > {{=(row.body1)+ [[NEWLINE]] +(row.body2)}} > > {{=(row.body1)+ '[[NEWLINE]]' +(row.body2)}}

[web2py] Re: MARKMIN line break

2012-12-01 Thread apps in tables
I am trying these: {{=(row.body1)+ \n\n +(row.body2)}} {{=(row.body1)+ ' \n\n '+(row.body2)}} {{=(row.body1)+ [[NEWLINE]] +(row.body2)}} {{=(row.body1)+ '[[NEWLINE]]' +(row.body2)}} and they are not working. What am i missing? Regards, Ashraf --

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
I learned from my editor that there is a huge difference between a paragraph and a line break. This also documented on a different thread here - people writing texts need both. Am Donnerstag, 29. November 2012 17:51:45 UTC+1 schrieb Massimo Di Pierro: > > Why do you want the newline at all? If

[web2py] Re: MARKMIN line break

2012-11-29 Thread Massimo Di Pierro
Why do you want the newline at all? If you have \n\n in your text, it will be used to brak You can just add space after with css. On Thursday, 29 November 2012 10:27:12 UTC-6, Dirk Krause wrote: > > I see, and thank you. Now we already have a database full of text without > the 'newline' t

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
I see, and thank you. Now we already have a database full of text without the 'newline' tag and I have two options: (1) traverse through the database and applying foresaid regex to all text fields or (2) hack the regex somewhere into the code. I just tried (2) and it seems to be working; I appli

[web2py] Re: MARKMIN line break

2012-11-29 Thread Massimo Di Pierro
The idea was to insert explicit newlines inside tags like H1, H2, etc. On Thursday, 29 November 2012 08:52:24 UTC-6, Dirk Krause wrote: > > ok, thank you. > > I am only wondering why there is a special tag '[[NEWLINE]] when there is > already a one-to-one token for it - the single page break itse

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
ok, thank you. I am only wondering why there is a special tag '[[NEWLINE]] when there is already a one-to-one token for it - the single page break itself. This can be parsed with re.sub(r'([^\n])\n([^\n])', r'\1[[NEWLINE]]\n\2', s) (full example here: http://pythonfiddle.com/replace-single-line-b

[web2py] Re: MARKMIN line break

2012-11-29 Thread villas
Use this: [[NEWLINE]] On Thursday, November 29, 2012 11:04:56 AM UTC, Dirk Krause wrote: > > Hi, > > sorry if this was answered elsewhere but I couldn't find it: > I found no consistent answer how to add single line breaks ('') as > opposed to paragraphs ('') into MARKMIN. > > This is what I fou

[web2py] Re: markmin @{...}

2012-10-11 Thread Jose
El jueves, 11 de octubre de 2012 10:45:36 UTC-3, Massimo Di Pierro escribió: > > I see the problem. MARKMIN as a markup language does not assume you have > web2py nor web2py.js. It allows you to expose any function you want such as > @{:} but you have to define the function. You can do: > > def

[web2py] Re: markmin @{...}

2012-10-11 Thread Massimo Di Pierro
I see the problem. MARKMIN as a markup language does not assume you have web2py nor web2py.js. It allows you to expose any function you want such as @{:} but you have to define the function. You can do: def component(text): items = text.split('/') controller, function, args = items[0], i

[web2py] Re: markmin @{...}

2012-10-11 Thread Jose
El miércoles, 10 de octubre de 2012 22:56:23 UTC-3, Massimo Di Pierro escribió: > > Both of the examples below should work with the right MARKMIN parameters. > > What would be the correct parameters for MARKMIN? José --

[web2py] Re: markmin @{...}

2012-10-10 Thread Jose
El miércoles, 10 de octubre de 2012 22:56:23 UTC-3, Massimo Di Pierro escribió: > > I do not understand the question. auth.wiki uses markmin. I think they > both use the same syntax. Both of the examples below should work with the > right MARKMIN parameters. > Hi Massimo I'm using the trunk

[web2py] Re: markmin @{...}

2012-10-10 Thread Massimo Di Pierro
I do not understand the question. auth.wiki uses markmin. I think they both use the same syntax. Both of the examples below should work with the right MARKMIN parameters. On Wednesday, 10 October 2012 19:36:24 UTC-5, Jose wrote: > > > I see that now is: > > @///function/args > > Why not work in

[web2py] Re: markmin @{...}

2012-10-10 Thread Jose
I see that now is: @///function/args Why not work in MARKMIN? @{component:controller/function/args) Jose --

[web2py] Re: MARKMIN change of behavior

2012-08-15 Thread Massimo Di Pierro
You make a good point. We will investigate. technically markmin in in contrib. We do not fully guarantee backward compatibility of stuff in contrib, even if it is written us. Anyway, because it is written by us and because this change was not intentional we'll look into reverting it. massimo O

[web2py] Re: MARKMIN change of behavior

2012-08-15 Thread villas
Well some epiphenomena may be serendipitous, but probably not this one. Let's face it, a change which breaks page content would always be unwelcome, unless delivering some other benefit. On Wednesday, August 15, 2012 5:48:56 PM UTC+1, Massimo Di Pierro wrote: > > I did not. markmin2html.py w

[web2py] Re: MARKMIN change of behavior

2012-08-15 Thread Massimo Di Pierro
I did not. markmin2html.py was rewritten to add new functionality and that was an epiphenomenon. I guess we can revert it. I will talk to Vladyslav and see what it involves. On Wednesday, 15 August 2012 11:31:05 UTC-5, villas wrote: > > 1. I still don't understand why you departed from the beh

[web2py] Re: MARKMIN change of behavior

2012-08-15 Thread villas
1. I still don't understand why you departed from the behaviour of markdown to now create a single header line from multi-line text. The behaviour does not seem natural to me, especially as it introduces a new incompatibility with markdown. 2. I tested the change with regards the space betwee

[web2py] Re: MARKMIN change of behavior

2012-08-11 Thread Massimo Di Pierro
The #head is now fixed. Please check it. On Saturday, 11 August 2012 11:35:57 UTC-5, villas wrote: > > Hmm, unless you mention what the 'better behaviour' is, it is difficult > to agree as this change does result in broken content. > > In any case, I also believe that 'better behaviour' should

[web2py] Re: MARKMIN change of behavior

2012-08-11 Thread villas
Hmm, unless you mention what the 'better behaviour' is, it is difficult to agree as this change does result in broken content. In any case, I also believe that 'better behaviour' should also be to try to retain compatibility with Markdown. There are now two departures from Markdown with rega

[web2py] Re: Markmin patch with nested lists

2012-08-02 Thread Massimo Di Pierro
You do not need the patch. Markrmin in trunk has been rewritten. Supports nested lists and more. On Tuesday, 31 July 2012 07:19:50 UTC-5, Dirk Krause wrote: > > Hi, > > I am trying to apply this patch: > > http://code.google.com/p/web2py/issues/attachmentText?id=524&aid=5240002000&name=markmin_ne

[web2py] Re: Markmin - could we use instead of ?

2012-03-25 Thread villas
Many thanks!

[web2py] Re: Markmin - could we use instead of ?

2012-03-24 Thread Massimo Di Pierro
Fixed in trunk

[web2py] Re: Markmin - could we use instead of ?

2012-03-24 Thread Massimo Di Pierro
Fixed in trunk

[web2py] Re: Markmin - could we use instead of ?

2012-03-23 Thread Massimo Di Pierro
Agreed. should be not . On Friday, 23 March 2012 10:05:48 UTC-5, villas wrote: > > I see bold is , so why is em rendered as - it is > inconsistent. Also inconsistent with Markdown. And isn't even styled > in the current web2py.js (unless I'm missing something). Anyhow, if it > wouldn't

[web2py] Re: Markmin small problems

2012-02-27 Thread Massimo Di Pierro
Please open ticket on google code. I agree this should be fixed. On Feb 27, 3:34 am, Mirek Zvolský wrote: > I'm using markmin2html.py. > > Tables & Blockquotes need to have at least one \n before and one \n after. > > When the table or blockquote is on the begin or end of the source string, > wor

[web2py] Re: Markmin Output Questions

2012-02-12 Thread Ross Peoples
Massimo, How do you generate the PDF book now?

[web2py] Re: Markmin Output Questions

2012-02-12 Thread Massimo Di Pierro
No but we can think about extending it On Feb 12, 7:59 am, Alan Etkin wrote: > -I'd prefer separated files for large documents (but does MARKMIN > support it?) > -I don't see page break options in the docs. CSS seems to support page > breaks, but I don't think that MARKMIN accepts style sheets so

[web2py] Re: Markmin Output Questions

2012-02-12 Thread Alan Etkin
-I'd prefer separated files for large documents (but does MARKMIN support it?) -I don't see page break options in the docs. CSS seems to support page breaks, but I don't think that MARKMIN accepts style sheets so far. I'm affraid you will have to explore this: http://web2py.googlecode.com/hg/g

[web2py] Re: Markmin Output Questions

2012-02-11 Thread Ross Peoples
Anyone have any thoughts on this?

[web2py] Re: markmin and image width

2012-02-11 Thread Jose
Thank you. I saw it after I sent the query Jose

[web2py] Re: markmin and image width

2012-02-10 Thread Alan Etkin
If you mean having markmin to give the image a given width, this migth help: "... This paragraph has an image aligned to the right with a width of 200px. Its is placed using the code [[some image http://www.web2py.com/examples/static/web2py_logo.png right 200px]]. ..." from here: http://web2py.c

[web2py] Re: MARKMIN clarification

2012-01-05 Thread Massimo Di Pierro
Please log it. I will fix it asap but log it so I do not forget. On Jan 5, 8:30 am, lyn2py wrote: > Should I log an issue for this? Or might it already be fixed? > > On Jan 2, 10:25 pm, Massimo Di Pierro > wrote: > > > > > > > > > I agree with you something is wrong... and needs fixing. > > > On

[web2py] Re: MARKMIN clarification

2012-01-05 Thread lyn2py
Should I log an issue for this? Or might it already be fixed? On Jan 2, 10:25 pm, Massimo Di Pierro wrote: > I agree with you something is wrong... and needs fixing. > > On Jan 2, 7:26 am, lyn2py wrote: > > > > > > > > > I double-checked... there are no extra spaces after the dashes. > > > I tri

[web2py] Re: MARKMIN clarification

2012-01-02 Thread Massimo Di Pierro
I agree with you something is wrong... and needs fixing. On Jan 2, 7:26 am, lyn2py wrote: > I double-checked... there are no extra spaces after the dashes. > > I tried on a new post, this is the produced HTML: > here's some blockquote: > this is a message > for first parathis is a message > for s

[web2py] Re: MARKMIN clarification

2012-01-02 Thread lyn2py
I double-checked... there are no extra spaces after the dashes. I tried on a new post, this is the produced HTML: here's some blockquote: this is a message for first parathis is a message for second parathis is a message for third para here's some blockquote: -- this is a message for first par

[web2py] Re: MARKMIN clarification

2012-01-01 Thread Massimo Di Pierro
This could be a bug. It is possible you have extra spaces after some of the ? On Jan 1, 5:59 pm, lyn2py wrote: > MARKMIN blockquote: I can't have 2 blockquotes in a single message? > > This is the text I used, and only the one on top was generated as a > blockquote. The one below was like the

[web2py] Re: MARKMIN clarification

2012-01-01 Thread lyn2py
One more point to note... I tried it twice. It consistently didn't render properly in one and it consistently rendered properly in the other. *confused* What can I do to help resolve this issue? On Jan 2, 7:59 am, lyn2py wrote: > MARKMIN blockquote: I can't have 2 blockquotes in a single message

[web2py] Re: MARKMIN clarification

2012-01-01 Thread lyn2py
MARKMIN blockquote: I can't have 2 blockquotes in a single message? This is the text I used, and only the one on top was generated as a blockquote. The one below was like the rest of the body. here's some blockquote: -- this is a message for first para this is a message for second para this

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thanks Massimo. Happy New Year's Eve :) I'm not sure what considerations went into this, that a single new line is not given a "br" at the end. (it can still be interpreted as a continuation of the same paragraph, regardless) I hope you will consider adding this feature (each new line gets a "br"

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thank you Massimo. Happy New Year's Eve :) After fiddling with markmin for hours and reading http://web2py.com/examples/static/markmin.html a few times, I made a suggestion I hope you will consider including: http://code.google.com/p/web2py/issues/detail?id=588 I don't know where I might be able

[web2py] Re: MARKMIN clarification

2011-12-30 Thread Massimo Di Pierro
Two new lines in markmin translate into an end of paragraph in html, a single new line is interpreted as a continuation of the same paragraph. On Dec 30, 1:51 am, lyn2py wrote: > Does MARKMIN have issues with processing newlines? > Because I can't use formatting here, everything looks like the sa

[web2py] Re: MARKMIN clarification

2011-12-30 Thread lyn2py
Thanks Albert, just tried your suggestion, but it didn't create the newlines "". Also, because the intended input will be like a forum post (like bbcode), I doubt I would like MARKMIN to force newlines with spaces (has to be user-friendly, right?) Unless of course MARKMIN is not meant for this use

Re: [web2py] Re: MARKMIN indentation

2011-12-17 Thread Vasile Ermicioi
aha, ok thank you

[web2py] Re: MARKMIN indentation

2011-12-16 Thread Massimo Di Pierro
You problem is parsing invalid HTML or an HTML with non-utf8 encoding. web2py is not the tool for that. Use beautiful soup to parse it and then serialize it back to valid HTML in utf8. Then you can use TAG().flatten(...) On Dec 16, 2:45 pm, Vasile Ermicioi wrote: > so what to do? > please giv

Re: [web2py] Re: MARKMIN indentation

2011-12-16 Thread Vasile Ermicioi
so what to do? please give me an advice

[web2py] Re: MARKMIN indentation

2011-12-13 Thread Massimo Di Pierro
Markmin should work well with unicode. The TAG(...) html parser, based on HTMLParser has problems with non- utf8 encodings and non well-formatted html. Massmo On Dec 13, 6:10 pm, Vasile Ermicioi wrote: > I am trying to convert a bunch of html files to markmin, but I got strange > results > I th

Re: [web2py] Re: MARKMIN indentation

2011-12-13 Thread Vasile Ermicioi
I am trying to convert a bunch of html files to markmin, but I got strange results I think html to markmin doesn't work well with unicode (utf8 my case) attached are an example and this is my controller to do that def mmtest(): from gluon.html import markmin_serializer #markmin = TAG(html

[web2py] Re: MARKMIN indentation

2011-12-13 Thread Christopher Steel
+1 Markmin rocks

[web2py] Re: MARKMIN indentation

2011-12-12 Thread lyn2py
Thanks Massimo, MARKMIN is an excellent tool. Looking forward to this new feature in MARKMIN. On Dec 13, 1:30 am, Massimo Di Pierro wrote: > There is already an open issue about this. I approved it but did not > have the time to implement it. The minor complication is that it would > require chan

[web2py] Re: MARKMIN indentation

2011-12-12 Thread Massimo Di Pierro
There is already an open issue about this. I approved it but did not have the time to implement it. The minor complication is that it would require changing not just markmin2html.py but also markmin2latex. On Dec 12, 9:22 am, lyn2py wrote: > Hi, how do I make nested lists with MARKMIN? > For exam

[web2py] Re: markmin and text fields

2011-11-10 Thread Anthony
In markmin, **text** is for bold, not *text*. See http://web2py.com/book/default/chapter/13#Markmin-syntax. Anthony On Thursday, November 10, 2011 8:02:52 AM UTC-5, peter wrote: > > If I have a text field in a database, and I try displaying this using > the MARKMIN function, then the conversion

[web2py] Re: markmin vs. reST

2011-09-17 Thread Gour-Gadadhara Dasa
On Sat, 17 Sep 2011 08:37:45 -0700 (PDT) Massimo Di Pierro wrote: > Footnotes can be added easily > and sublists too. It is on the todo list. That's great. Thank you. btw, hearing that markmin is more powerful than markdown, maybe it should be renamed to MarkUp, or, at least, markmax. ;) Sinc

[web2py] Re: markmin vs. reST

2011-09-17 Thread Massimo Di Pierro
More complex tables are not possible. Footnotes can be added easily and sublists too. It is on the todo list. On Sep 17, 10:05 am, Gour-Gadadhara Dasa wrote: > On Sat, 17 Sep 2011 07:59:44 -0700 (PDT) > Massimo Di Pierro > > wrote: > > > Our goals were: > > - simpler then reST, similar to Markdo

[web2py] Re: markmin vs. reST

2011-09-17 Thread Gour-Gadadhara Dasa
On Sat, 17 Sep 2011 07:59:44 -0700 (PDT) Massimo Di Pierro wrote: > > Our goals were: > - simpler then reST, similar to Markdown but more powerful That's good one...I like markdown as well. > - extensible Any more info about it? Do you find markmin semantically rich-enough for writing books

[web2py] Re: markmin vs. reST

2011-09-17 Thread Massimo Di Pierro
Good question. Our goals were: - simpler then reST, similar to Markdown but more powerful - support for HTML 5 - extensible - avoid conflits with natural language as much as possible In reST: .. image:: images/biohazard.png In Markmin [[description images/biohazard.png center 200px]] In reST yo

Re: [web2py] Re: Markmin question

2011-06-16 Thread Vasile Ermicioi
thank you sir

  1   2   >