[web2py] MARKMIN - Sanitizing

2019-04-25 Thread Paul Ellis
I am using an editable span with some js to submit the input via ajax to the server. The span is only editable by admins. To give them some formatting options they can use MARKMIN in the span. The problem is it only seems to be one directional. How can I take the processed HTML and turn it bac

[web2py] MARKMIN extend with css ".card.bg-warning"

2019-01-10 Thread Daniel Vogel
Hello Is it possible to extend the MARKMIN syntax with two classes? Web2py version 2.17.2 This works: `` This text use css card ``:card Now with two classes, isn't working: `` This text use css card ``:card.bg-warning Rendered as: This text use css card .bg-warning Thanks Daniel -- Reso

[web2py] MARKMIN embed video or html with size (width=, height=)?

2018-12-11 Thread Daniel Vogel
Hello MARKMIN with auth.wiki: Is it possible to set the "embed:" parameter with width and height? Wiki-Page with: embed:http://www.youtube.com/embed/x1w8hKTJ2Co Thanks, Daniel -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] markmin

2016-05-07 Thread briannd81
I can read the x value of http get as: tmp = request.vars['x'] What is the equivalent syntax in *markmin*? -- 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) --

[web2py] Markmin best practices

2015-10-04 Thread St. Pirsch
I have some noob questions on how to use Markmin correctly: Is there a way to link pictures within markmin, i.e. to produce ? I noticed that anchors get the prefix "markmin-" automatically. I guess there is a concept behind this decision, but I do not see the reason & is there a way to circumve

Re: [web2py] markmin, pyfpdf, qr and utf-8-code

2015-06-05 Thread Martin Weissenboeck
It seem so. There is a lot of nice tools, but they do not work together. I have to split my text into paragraphs, headlines and so, format each part, put it into a list and create my files out of this list. It works, but it is not very comfortable. 2015-06-05 9:12 GMT+02:00 José Luis Redrejo : I

Re: [web2py] markmin, pyfpdf, qr and utf-8-code

2015-06-05 Thread José Luis Redrejo
I don't think you can mix markmin with fpdf (using the html to pdf functions). You will have to build your pdf in the controller picking up the text from the html. 2015-06-04 23:27 GMT+02:00 Martin Weissenboeck : > What I want to do: > > >- I want to write some pages using markmin. >- He

[web2py] markmin, pyfpdf, qr and utf-8-code

2015-06-04 Thread Martin Weissenboeck
What I want to do: - I want to write some pages using markmin. - Headlines should be centered and the date should be aligned right. - These pages contain non-ASCII-characters, therefore I need utf-8. - There should be a qr-code on the first page. - At the end I want to get these pa

[web2py] markmin as separate package

2015-05-31 Thread Gour
Hello, for simply web sites I want to use Nikola - Python-powered static-site-generator (http://getnikola.com) which supports writing content by using many different markup languages. Yesterday, while chatting on IRC with main developer, I asked him about adding support for markin and he replied

[web2py] MARKMIN problem with email addresses

2015-05-27 Thread David Manns
Using MARKMIN helper, if the string includes something like "... text some...@somewhere.com. Another sentence ..." the period following the email address is incorrectly included in the email link. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/we

[web2py] markmin and newline

2015-04-19 Thread 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 the admin app? I have tried \n and \r without success. Any hints? Regards, Martin - -- Resources: -

[web2py] Markmin Blockquote

2014-12-27 Thread lyn2py
Hi guys I'm trying MARKMIN here and the block quotes I have look like this 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 And not like the one shown in: http://www.web2py.com/init/static/ma

[web2py] MARKMIN image margin

2014-09-14 Thread olivier hubert
Is it possible to add a margin with a MARKMIN syntax to a image ? -- 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 because you ar

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

2014-08-10 Thread lyn2py
Just spotted this bug. If you have a ' in your text, it cannot be italicized, instead it is printed as is. Examples to test: ''try this, it works'' ''but then this doesn't work'' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] Re: web2py markmin function does not render plus ( + ) charcter

2013-10-29 Thread Massimo Di Pierro
Just fixed it in trunk. On Tuesday, 29 October 2013 00:47:59 UTC-5, 98u...@gmail.com wrote: > > I am afraid that expression $$ x + y $$ will render as "xy" rather than > "x+y". I tried escaping the "plus" character but without any luck. I was > wondering if somebody else encountered such an issu

[web2py] Re: web2py markmin function does not render plus ( + ) charcter

2013-10-29 Thread Massimo Di Pierro
You found a bug. For now do $$ x %20 y $$ On Tuesday, 29 October 2013 00:47:59 UTC-5, 98u...@gmail.com wrote: > > I am afraid that expression $$ x + y $$ will render as "xy" rather than > "x+y". I tried escaping the "plus" character but without any luck. I was > wondering if somebody else encoun

[web2py] web2py markmin function does not render plus ( + ) charcter

2013-10-28 Thread 98ujko9
I am afraid that expression $$ x + y $$ will render as "xy" rather than "x+y". I tried escaping the "plus" character but without any luck. I was wondering if somebody else encountered such an issue. Any help will be much appreciated. Thanks -- Resources: - http://web2py.com - http://web2py.com/

[web2py] Markmin, LaTeX and pdf generation

2013-06-20 Thread peibol
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 install pdflatex for example). 1- I have configured my views to use mathjax (in the head section). Is it the right way to proceed wit

[web2py] Markmin components

2013-05-07 Thread villas
I was just reading the Markmin code and trying to figure out what support there is for loading components. I would like to load the return string from a function into some Markmin text. I have seen @{component:... @a/c/f and suchlike, but cannot make that work. Perhaps someone could expla

[web2py] Markmin and spell-checking

2013-04-13 Thread Alan Etkin
Has anyone used any tool for automated spell-checking with long markmin docs like those of the web2py manual? I'm using the Libre Office Writer corrector, but when I save the changes the files do not render correctly, so I guess Writer is using an incompatible file format. Any idea on how to dea

[web2py] Markmin: How to align text?

2013-04-10 Thread Johann Spies
In Markdown I can do this (found on http://bywordapp.com/markdown/guide.html ): Alignment To align the data cells on the table, you need to introduce a special row right after the headers, that will determine how the following rows – the data rows – will be aligned. | Header One | Header Two | H

[web2py] Markmin and multiple HTML5 media sources

2013-04-09 Thread Alan Etkin
Is there any markmin notation for adding html5 audio/video with multiple sources? For example, one can do [[blah http://mylink.com/app/static/somefile.media video]] But, is this supported? [[blah http://somefile.ext http://trythisasfallback.ext http://orthis.ext video]] And what about adding

[web2py] Markmin images width

2013-01-26 Thread Dick Schrauwen
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 as an inline_style? Please help Dick --

[web2py] MARKMIN line break

2012-11-29 Thread Dirk Krause
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 found so far: (1) the 'purest' Markdown doesn't allow line breaks at all (found in stackoverflow) (2) there

[web2py] markmin @{...}

2012-10-10 Thread Jose
Hi, What happened to this [1] feature? Has been removed? José [1] https://groups.google.com/forum/?fromgroups=#!searchin/web2py/markmin$20new/web2py/A9l1gl7PzHs/D4OUp125T8gJ --

[web2py] MARKMIN change of behavior

2012-08-08 Thread Massimo DiPierro
There is a manor change of behavior in MARKMIN. Before: - markmin # title aaa bbb -- end markmin would render as titleaaa After: the same markmin would render title aaa In other words now headers (#, ##, ###) can be continued to the next line and need an empty n

[web2py] Markmin patch with nested lists

2012-07-31 Thread Dirk Krause
Hi, I am trying to apply this patch: http://code.google.com/p/web2py/issues/attachmentText?id=524&aid=5240002000&name=markmin_nested_list.diff&token=kjJqRhq0Kmpw7px0Idciodnzvyo%3A1343665747008 (IIRC Massimo posted this somewhere here.) I successfully patched it to the markmin2html.py file, but I

[web2py] Markmin Questions

2012-07-31 Thread villas
1. Why not include line breaks in Markmin? This question was asked before, and this was the proposed solution from the last time. However, this is fine as a workaround but requires more code. Line breaks may be required for all kinds of reasons. MARKMIN(text, extra={'space':lambda code:

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-28 Thread Vladyslav Kozlovskyy
Ok. Wait the patch 29.07.12 01:28, Massimo Di Pierro написав(ла): I think this is a reasonable solution. The helper MARKMIN could be smarter and use autolinks expand_one. On Saturday, 28 July 2012 14:14:50 UTC-5, dbdeveloper wrote: I think, the best way is to use autolinks as a render()'s

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-28 Thread Massimo Di Pierro
I think this is a reasonable solution. The helper MARKMIN could be smarter and use autolinks expand_one. On Saturday, 28 July 2012 14:14:50 UTC-5, dbdeveloper wrote: > > I think, the best way is to use autolinks as a render()'s parameter ( > autolinks replaces auto parameter): > > def default_au

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-28 Thread Vladyslav Kozlovskyy
I think, the best way is to use autolinks as a render()'s parameter (autolinks replaces auto parameter): def default_autolinks(url): """ default autolinks for links, pictures and videos using video tag """ return '%s' % (url, url) render(., autolinks=default_autolinks) disa

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-28 Thread Massimo Di Pierro
1.2. I wrote autolinks and it is not used by anything else. We can change the licence and - in principle - we can move the code we need in markmin2html.py. 3. yes 4. perhaps we can pass a dict to markmin? 5. I do not think embed is documented in the book. If we silently ignore embed and treat e

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-28 Thread Vladyslav Kozlovskyy
autolinks is right module. but I have some questions: 1. markmin doesn't have dependencies. Now it will be dependent on autolinks. Solution: we can "disable" autolink if it isn't found on path. Right? 2. Autolink is LGPL, makmin is MIT/BSD/GPL. I do not understand differentiation between them.

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-27 Thread Massimo Di Pierro
I think embed:http://url should be deprecated in MARKMIN. It think if a url is found and not marked-up whether or not prefixed with "embed:" the url should be precessed by the function gluon/contrib/autolinks.py/expand_one(url,{}) This function uses the oembed protocol to figure out th

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-26 Thread Massimo Di Pierro
Before you change it, let me think about this some more... On Thursday, 26 July 2012 17:03:35 UTC-5, dbdeveloper wrote: > > well, give me an example of correct iframe and embed output and I'll > change markmin. ok? > > Vladyslav Kozlovskyy (Ukraine) > > 26.07.12 16:40, Jose написав(ла): > > >

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-26 Thread Vladyslav Kozlovskyy
well, give me an example of correct iframe and embed output and I'll change markmin. ok? Vladyslav Kozlovskyy (Ukraine) 26.07.12 16:40, Jose ???(??): El jueves, 26 de julio de 2012 02:04:21 UTC-3, dbdeveloper escribió: Hi, Jose! try 'iframe' instead of 'embed': iframe:http

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-26 Thread Jose
El jueves, 26 de julio de 2012 02:04:21 UTC-3, dbdeveloper escribió: > > Hi, Jose! > > try 'iframe' instead of 'embed': > > iframe:http://www.youtube.com/embed/x1w8hKTJ2Co > Ok Vladyslav, but I think the same as Massimo, this breaks backwards compatibility. Jose --

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-26 Thread Massimo Di Pierro
This may be considered a breaking of backward compatibility and we need to think about it. Originally the emebed:... attribute was supposed to check if the link supports the oembed protocol and determine what to do (iframe or not) automatically. There is actually code in web2py (gluon/contrib/

Re: [web2py] markmin embed:http://... not work trunk version

2012-07-25 Thread Vladyslav Kozlovskyy
Hi, Jose! try 'iframe' instead of 'embed': iframe:http://www.youtube.com/embed/x1w8hKTJ2Co In 1.99.7 embed looks like iframe, and iframe is not used at all (it's a new feature): *>>> markmin2html('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')* 'http://www.youtube.com/embed/x1w8hKTJ2Co";

[web2py] markmin embed:http://... not work trunk version

2012-07-25 Thread Jose
Hi all >From the book: https://web2py.com/books/default/chapter/29/5 The following is not working embed:http://www.youtube.com/embed/x1w8hKTJ2Co show me the url and not the video I'm using the trunk version, in version 1.99.7 works well. José --

[web2py] Markmin - could we use instead of ?

2012-03-23 Thread villas
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 cause a problem, could we please change it. Thanks.

[web2py] Markmin small problems

2012-02-27 Thread Mirek Zvolský
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, workaround is easy: markmin2html("\n" + src + "\n") will recognize the table properly. But inside the text, if 2 blockq

[web2py] Markmin Output Questions

2012-02-10 Thread Ross Peoples
I am looking into writing lots of documentation and have been looking around at the different solutions. I know that the web2py book was written with Markin, and seeing as how it is able to output to multiple different formats and supports things like tables and image alignment, I figure it's p

[web2py] markmin and image width

2012-02-08 Thread Jose
Hi, How I can set the width of an image (to be processed by markmin)? Best regards, Jose

Re: [web2py] MARKMIN clarification

2011-12-30 Thread Albert Abril
I can't test it now, but try to put 4 spaces at the end of the line to force a newline. 2011/12/30 lyn2py > Does MARKMIN have issues with processing newlines? > Because I can't use formatting here, everything looks like the same > text, but in MARKMIN the formatting is ok, only the newlines is n

[web2py] MARKMIN clarification

2011-12-29 Thread lyn2py
Does MARKMIN have issues with processing newlines? Because I can't use formatting here, everything looks like the same text, but in MARKMIN the formatting is ok, only the newlines is not ok. (1) I noticed that newlines don't convert to in MARKMIN, which is strange. Example: I write this in two l

[web2py] MARKMIN indentation

2011-12-12 Thread lyn2py
Hi, how do I make nested lists with MARKMIN? For example, indentation to create it? + Ordered Item - Bulleted Item + Another Item + Sub Item + Sub 2 - Bulleted Again Probably gives: 1. Ordered Item - Bulleted Item 2. Another Item a. Sub Item b. Sub 2 * Bulleted Again * r

[web2py] markmin and text fields

2011-11-10 Thread peter
If I have a text field in a database, and I try displaying this using the MARKMIN function, then the conversion does not happen. i.e *text* gets output as it stands rather than emboldened. What translation does one need to do to a 'text' field to allow MARKMIN to work correctly. Thanks

[web2py] markmin vs. reST

2011-09-17 Thread Gour-Gadadhara Dasa
Hello! I see that markmin is kind of 'standard' markup supported in web2py, but I use reST markup and lot (even submitted feature request to Instant Press to support it), but I wonder how does markmin, in general, compare with reST? I noticed that there is no support for footnotes, tables look pr

[web2py] markmin with nested

2011-07-04 Thread Martin Weissenboeck
Does MARKMIN create something like abc def 12 34 Regards, Martin

[web2py] Markmin question

2011-06-16 Thread elffikk
hi, I like markmin syntax, I am thinking to use it, yet I have a few questions - is there a html to markmin converter? (a markmin to html is - /gluon/ contrib/markmin/markmin2html.py) - how to emebed flash? - what about including css or javascript ? (

Re: [web2py] Markmin with Markitup is not not playing right...

2011-05-31 Thread Bruno Rocha
You need the markitup that us packed within plugin_wiki. Massimo made some changes Em 01/06/2011 00:38, "Jason Brower" escreveu: > So I know I have markItUp installed... (Notice Screenshot.png) > But I get this error... (Notice Screenshot-1.png) > What could I possibly be doing wrong here? > Best

[web2py] Markmin nested list

2011-05-31 Thread snapy666
Hello, how can I make nested lists with markmin? With markdown you can indent it with four spaces to go to the next level. Thanks in advance regards, snapy666

[web2py] Markmin + Markitup

2011-05-01 Thread villas
As I understand it, we only get the Markitup editor for a text field when we install plugin_wiki. Does anyone have an easy step-by-step method to do it otherwise?

Re: [web2py] MARKMIN() not working...

2011-04-09 Thread Jason Brower
Yeah those work. After looking at what I had typed for markmin I noticed that: ** not bold** and **bold** are different. The space after the ** doesn't let it be bold. If this was intentional, I am all for it, but it could be a bug. BR, Jason Brower On 04/09/2011 09:53 PM, Bruno Rocha wrote:

Re: [web2py] MARKMIN() not working...

2011-04-09 Thread Bruno Rocha
Did you tested something like this? {{markmintext = """ # Testing MARKMIN - This should work **This should be bold** """}} {{=MARKMIN(markmintext)}} On Fri, Apr 8, 2011 at 2:36 PM, Jason Brower wrote: > It seems when I do the following: > {{=MARKMIN(page.content)}} It ignores it and simply

[web2py] MARKMIN() not working...

2011-04-09 Thread Jason Brower
On 04/08/2011 08:36 PM, Jason Brower wrote: It seems when I do the following: {{=MARKMIN(page.content)}} It ignores it and simply prints the text. Is there something I am doing wrong? Best Regards, Jason Brower Bump... this problem may be a bug in the system and wanted to see if anyone else

[web2py] MARKMIN() not working...

2011-04-08 Thread Jason Brower
It seems when I do the following: {{=MARKMIN(page.content)}} It ignores it and simply prints the text. Is there something I am doing wrong? Best Regards, Jason Brower

[web2py] MARKMIN HELPER

2010-11-09 Thread Bruno Rocha
Minor suggestion for MARKMIN() If I am fetching the Markmin content from database, and database field is empty (None), MARKMIN raises an error. I am solving this problem with : MARKMIN(myfield or ' ') But, I think MARKMIN can itself resolve what to do if the received arg is NoneType) File "/

Re: [web2py] markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread Jonathan Lundell
On Jul 7, 2010, at 5:27 AM, mdipierro wrote: > As you know T2 and T3 are deprecated. Some time ago I started a > reimplementation of T3 called cube9. I got stuck. I now re-factored it > completely > > - > http://code.google.com/p/cube9/ (requires web2py trunk) > - > > It uses markmin:

Re: [web2py] markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread Júlio Monteiro
Hello Massimo, Looks very promising! Will try it today, as soon as I get home. Also I like the name too, better than T(n). :) A question: would it be possible to set "*plugin_wiki_level*" per page so you can have special system pages and other pages users can edit or create? Or even better, certa

[web2py] markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread mdipierro
# Preamble As you know T2 and T3 are deprecated. Some time ago I started a reimplementation of T3 called cube9. I got stuck. I now re-factored it completely - http://code.google.com/p/cube9/ (requires web2py trunk) - It uses markmin: - http://web2py.com/examples/static/markmin

Re: [web2py] markmin

2010-07-06 Thread Jason Brower
Markdown has no classes and it's annoying. I have been hoping for something like this. And didn't they say it was faster? Why do we need Python when we can do everything in C? Then again, I am no expert. And about the seporate project. It kind of is now, but it is just included with the web2py pa

Re: [web2py] markmin

2010-07-06 Thread Álvaro Justen
Another thoughts: *why* do we need another markup language? Markdown is not enough? It is so boring to learn a lot of languages (rest, markdown, markmin...). On Tue, Jul 6, 2010 at 23:32, Álvaro Justen wrote: > On Mon, Jul 5, 2010 at 19:42, mdipierro wrote: >> http://www.web2py.com/examples/stat

Re: [web2py] markmin

2010-07-06 Thread Álvaro Justen
On Mon, Jul 5, 2010 at 19:42, mdipierro wrote: > http://www.web2py.com/examples/static/markmin.html As you created it, it is in contrib, it doesn't depend on web2py and maybe useful to other people, I think we should create another project to maintain markmin. Other ideia is to integrate the temp

Re: [web2py] markmin

2010-07-05 Thread Jason Brower
FUN! But who is "we"? BR, Jason Brower On Mon, 2010-07-05 at 15:42 -0700, mdipierro wrote: > http://www.web2py.com/examples/static/markmin.html >

[web2py] markmin

2010-07-05 Thread mdipierro
http://www.web2py.com/examples/static/markmin.html