You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(14) |
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
(7) |
Apr
(6) |
May
(25) |
Jun
(11) |
Jul
|
Aug
(5) |
Sep
(5) |
Oct
(39) |
Nov
(28) |
Dec
(6) |
2008 |
Jan
(4) |
Feb
(39) |
Mar
(14) |
Apr
(12) |
May
(14) |
Jun
(20) |
Jul
(60) |
Aug
(69) |
Sep
(20) |
Oct
(56) |
Nov
(41) |
Dec
(29) |
2009 |
Jan
(27) |
Feb
(21) |
Mar
(37) |
Apr
(18) |
May
(2) |
Jun
(6) |
Jul
(6) |
Aug
(5) |
Sep
(2) |
Oct
(12) |
Nov
(2) |
Dec
|
2010 |
Jan
(12) |
Feb
(13) |
Mar
(10) |
Apr
|
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
(8) |
Oct
(7) |
Nov
(1) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
(6) |
Apr
(5) |
May
(6) |
Jun
(15) |
Jul
(2) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(5) |
2012 |
Jan
(6) |
Feb
|
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(20) |
2013 |
Jan
|
Feb
|
Mar
(5) |
Apr
(1) |
May
(1) |
Jun
(9) |
Jul
(3) |
Aug
(5) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2014 |
Jan
(10) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(12) |
Sep
(9) |
Oct
(4) |
Nov
(8) |
Dec
(2) |
2015 |
Jan
(5) |
Feb
(5) |
Mar
(1) |
Apr
(1) |
May
(3) |
Jun
|
Jul
|
Aug
(9) |
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
(2) |
Mar
(9) |
Apr
(2) |
May
(6) |
Jun
|
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
|
Dec
(1) |
2017 |
Jan
(9) |
Feb
|
Mar
(3) |
Apr
|
May
(14) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
2018 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(9) |
2019 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
From: fubar A. <acc...@fu...> - 2017-01-24 10:27:22
|
Follow the link below to go to reset your password. http://fubar.com/reset_password.php?email=python-markdown-discuss%40lists.sourceforge.net&code=9a239a7f27 ------------------------ fubar.com ------------------------- To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=y55Nb3TbDMJKMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYv3zzerepAwu1r%2BBVki%2BUK9w%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: fubar A. <al...@fu...> - 2017-01-23 22:14:28
|
Hello 13525477, Congratulations, you earned a new achievement! View your achievements: http://fubar.com/alt.php?n=achievement&e=14852096586 --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail You received this email because you used this email address to sign-up on fubar.com. To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=kVah%2FlrbZ%2F9KMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYvaDW4bOvl2W6%2Fu%2BSvg8A%2BIw%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: fubar A. <al...@fu...> - 2017-01-23 22:14:27
|
Hello 13525477, Congratulations, you earned a new achievement! View your achievements: http://fubar.com/alt.php?n=achievement&e=14852096582 --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail You received this email because you used this email address to sign-up on fubar.com. To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=j9%2FNX6kMxahKMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYvaDW4bOvl2W7WcyA5%2FqvMxQ%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: fubar A. <al...@fu...> - 2017-01-23 22:14:26
|
Hello 13525477, Congratulations, you earned a new achievement! View your achievements: http://fubar.com/alt.php?n=achievement&e=14852096578 --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail You received this email because you used this email address to sign-up on fubar.com. To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=1ioOgppkqYFKMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYvaDW4bOvl2W74YYltL8PDqg%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: fubar A. <al...@fu...> - 2017-01-23 22:14:25
|
Hello , Congratulations, You Leveled Up! You are now at Level 1 Cheers, - fubar Family --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail You received this email because you used this email address to sign-up on fubar.com. To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=sSHu4HiJvu9KMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYvVffqPJG%2Fh%2FSj5GsKUVEJRw%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: fubar A. <acc...@fu...> - 2017-01-23 20:25:09
|
Dear Member, Welcome to fubar, the new hot spot on the Internet! Here is your registration information. Please keep it for future reference: Username: pyt...@li... fubar ID: 13525477 To make sure you get the best fubar experience, make sure to click below to verify your email address: http://fubar.com/verifyemail.php?token=PomBWuTiixwq7U11F9sUn35zXRTzIGo3 If you can not access the above link please go to: http://fubar.com/verifyemail.php and enter in the following: Token: PomBWuTiixwq7U11F9sUn35zXRTzIGo3 Cheers, - fubar Family --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail You received this email because you used this email address to sign-up on fubar.com. To unsubscribe or change your email settings, please use the following link: http://fubar.com/email_settings.php?s=ydtT9%2BAgnRBKMHmcuz%2FCTZhip2pfp6aB5xeHne3c3ZUs8UK8hNjoQ7ehI0rC8NYv%2BlSNLS4eAIiI%2BQECXMe%2FwA%3D%3D fubar - 50 Woodside Plaza #433 - Redwood City, CA 94061 |
From: Jessejenny13 <in...@fu...> - 2017-01-23 19:29:10
|
SPECIAL INVITE FROM: Jessejenny13 has bought you a drink and invited you to join them on fubar! "Come join me on fubar, the first online bar and happy hour!" To Join the Party: http://fubar.com/join_w1.php?h=his%2FdhobSWQb05cO8gmrlqTLMA342tzz&friend=13515645&email=pyt...@li... --------------------------------------------------------------- Download the fubar mobile app now - it's free! - Get exclusive sales alerts in advance! - Earn an achievement for downloading! - Stay connected with your friends! Available at the App Store: https://itunes.apple.com/app/apple-store/id455311703?pt=395928&ct=email Get it on Google Play: https://play.google.com/store/apps/details?id=com.fubar.mobile&referrer=utm_source%3Demail%26utm_medium%3Demail%26utm_campaign%3Demail If you would like to unsubscribe from this invite, please go to http://fubar.com/unsub.php?e=3%2B7HRf1nxx%2BnEP0bl8qhZlcyIRbzXbBD2ST%2BVPN7HNz38dUPDDzFRl7VJpNcpdOOC%2FfluOjPGqM%3D. |
From: Eduard C. <eca...@gi...> - 2017-01-20 18:23:28
|
Hello, We want to announce two new extensions for Python Markdown. They are our first extensions (maybe some things can be done better) - markdown-blockdiag: extension for block diagram expressions: http://blockdiag.com/en/blockdiag/index.html - markdown-i18n: basic support to translate Markdown files Feel free to comment improvements or whatever. (pull requests are very welcome) Cheers, -- Eduard Carreras i Nadal |
From: Waylan L. <way...@ic...> - 2017-01-05 00:40:50
|
Thomas, The fenced_code_block extension uses a preprocessor to parse fenced code blocks, which stashes the blocks for later retrieval. They are then reinserted into the rendered HTML by a postprocessor. As you are only running the blockprocessors, none of the pieces of the extension actually ever are run. The only way to use the included fenced code block extension is to render to HTML. Then run the output through an HTML parser and iterate over that. Of course, it is then imposable to tell whether the code block started as a indented block or fenced block. We do have plans to improve things as outlined in https://github.com/waylan/Python-Markdown/issues/53 but I can't say when that will happen. Its not particularly high on my priority list as the current solution is "good enough" for my needs. I suppose you could iterate over the stashed blocks. But you would need to at least run the preprocessor first. The main concern here is that the stash is just the `HtmlStash` instance for raw HTML. There is no differentiation between the code blocks and other raw HTML. You might need to disable raw HTML parsing (another preprocessor). Although, you might be able to just run `FencedCodeExtension.run` directly. Just make sure you do whitespace normalization first. I hope that helps. Let me know if you get stuck on anything and I'll see if I can help. Waylan Limberg On 12/30/2016 02:18 AM, Thomas Baruchel wrote: > Hi, I would like to iterate over code-blocks of a Markdown document without > rendering it to anything. I can do it easely with Python-Markdown, but I can't > manage to add the fenced block extension. My code is: > > > import markdown > from markdown.extensions.fenced_code import FencedCodeExtension > M = markdown.Markdown() > FencedCodeExtension().extendMarkdown(M, markdown.__dict__) > > f = open("demo.md", "r") > tree = M.parser.parseDocument(f.readlines()) > f.close() > for k in tree.iter(): > if k.tag == "code": > print(k) > print(k.text) > > It still detects indented code-blocks but not the fenced blocks. > What am I doing wrong? > > Thank you by advance, > > regards, > |
From: Thomas B. <bar...@gm...> - 2016-12-30 07:19:07
|
Hi, I would like to iterate over code-blocks of a Markdown document without rendering it to anything. I can do it easely with Python-Markdown, but I can't manage to add the fenced block extension. My code is: import markdown from markdown.extensions.fenced_code import FencedCodeExtension M = markdown.Markdown() FencedCodeExtension().extendMarkdown(M, markdown.__dict__) f = open("demo.md", "r") tree = M.parser.parseDocument(f.readlines()) f.close() for k in tree.iter(): if k.tag == "code": print(k) print(k.text) It still detects indented code-blocks but not the fenced blocks. What am I doing wrong? Thank you by advance, regards, -- tb. |
From: Jesse T. <jes...@gm...> - 2016-10-01 03:12:46
|
From: Slaughter, A. E <and...@in...> - 2016-09-01 23:55:30
|
Thanks for the response, I bet my problem is the blank lines. I will let you know if I still have a problem after that fix. Peace, Andrew On Thu, Sep 1, 2016 at 4:57 PM, Waylan Limberg <way...@ic...> wrote: > Andrew, > > Sorry for the delayed response. I just found your email in a backlog of > messages in my inbox. > > When you stash something, a placeholder gets inserted into the document. > That placeholder will then get wrapped in `<p>` tags by the Markdown > parser, which results in the behavior you have encountered. To compensate > for this, when swapping out the placeholder for the stash in a > postprocessor, we check if the placeholder is in a paragraph all by itself, > and if the stash starts with a block level HTML element, we replace the > placeholder and the wrapping `p` tag. However, if the `p` tag contains more > that only a placeholder, or the stashed item does not start with a block > level HTML tag, we simple replace the placeholder inside the paragraph, > leaving the `p` tags in place (which is how inline raw HTML is handled). > You can see the code at https://github.com/waylan/ > Python-Markdown/blob/master/markdown/postprocessors.py#L64 > <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_waylan_Python-2DMarkdown_blob_master_markdown_postprocessors.py-23L64&d=CwMC-g&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=xH34QE8Z7L4jtmH635y9_Hcvm4A8tV88mREFKGfWafk&s=7lzmd8__OWp_00c1fQbhFVkPzWSojsbg6sVBu0om3TU&e=> > . > > `section` tags are considered block level, so if you are not seeing that > behavior, then make sure that there is no whitespace surrounding your tags > (in the stash) and that no whitespace or anything else is included with > your placeholder on a line by itself. Your placeholder should have a blank > line both before and after. > > Waylan Limberg > > On 08/24/2016 12:32 PM, Slaughter, Andrew E wrote: > > I am attempting to stash an opening and closing html tag "<section>" and > "</section>" in certain parts of my markdown in a Preprocessor, which is > working. However, it seems to wrap the injected html within a "<p>" block. > Is there a way to avoid this? > > Thanks, > Andrew > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Python-markdown-discuss mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_python-2Dmarkdown-2Ddiscuss&d=CwMC-g&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=xH34QE8Z7L4jtmH635y9_Hcvm4A8tV88mREFKGfWafk&s=sEQc-PADRs56AFpNIF9wkJqQudsn5myE9IrzFoXInWk&e=> > > > |
From: Waylan L. <way...@ic...> - 2016-09-01 22:58:22
|
Andrew, Sorry for the delayed response. I just found your email in a backlog of messages in my inbox. When you stash something, a placeholder gets inserted into the document. That placeholder will then get wrapped in `<p>` tags by the Markdown parser, which results in the behavior you have encountered. To compensate for this, when swapping out the placeholder for the stash in a postprocessor, we check if the placeholder is in a paragraph all by itself, and if the stash starts with a block level HTML element, we replace the placeholder and the wrapping `p` tag. However, if the `p` tag contains more that only a placeholder, or the stashed item does not start with a block level HTML tag, we simple replace the placeholder inside the paragraph, leaving the `p` tags in place (which is how inline raw HTML is handled). You can see the code at https://github.com/waylan/Python-Markdown/blob/master/markdown/postprocessors.py#L64. `section` tags are considered block level, so if you are not seeing that behavior, then make sure that there is no whitespace surrounding your tags (in the stash) and that no whitespace or anything else is included with your placeholder on a line by itself. Your placeholder should have a blank line both before and after. Waylan Limberg On 08/24/2016 12:32 PM, Slaughter, Andrew E wrote: > I am attempting to stash an opening and closing html tag "<section>" > and "</section>" in certain parts of my markdown in a Preprocessor, > which is working. However, it seems to wrap the injected html within a > "<p>" block. Is there a way to avoid this? > > Thanks, > Andrew > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |
From: Slaughter, A. E <and...@in...> - 2016-08-24 17:04:03
|
I am attempting to stash an opening and closing html tag "<section>" and "</section>" in certain parts of my markdown in a Preprocessor, which is working. However, it seems to wrap the injected html within a "<p>" block. Is there a way to avoid this? Thanks, Andrew |
From: Waylan L. <way...@ic...> - 2016-05-28 00:51:04
|
Andrew, Have you looked at the list of existing third party extensions [1]? The outline [2] extension may be of interest to you. It breaks up a Markdown document into sections based on the headers within the document. No need for any special syntax to mark the sections. However, if you really need the special syntax, that extension might give you some ideas of how to implement your own. If not, then may I suggest you start with a treeprocessor. Step through the already parsed document (ElementTree Elements) and find each paragraph which contains a section marker. Replace that paragraph with a section Element and then insert into the section each sibling until you reach the next section marker. As everything should be at the document root, you shouldn't even need to look into children Elements. Should be pretty simple once you become familiar with the ElementTree API. [1]: https://github.com/waylan/Python-Markdown/wiki/Third-Party-Extensions [2]: https://github.com/aleray/mdx_outline Waylan Limberg > On May 25, 2016, at 7:21 PM, Slaughter, Andrew E <and...@in...> wrote: > > I am working on creating a custom extension to parse markdown into Reveal.js slides. I understand that Reveal.js already understands markdown, but I want to parse additional custom syntax that I already generated, thus I want to convert to html directly. > > Has anyone done something similar or can someone provide me with a similar example? I am just looking for something to kick me in the proper direction, I have created custom pattern extensions but I believe I will need a BlockProcessor or possibly a Preprocessor to do this. > > In short, I need to convert the demo.md to the demo.html shown below, which simply requires the delimiter (!---) to mark the location of a <section> break. Any help pointing me in the correct direction would be greatly appreciated. > > ---demo.md-------------------------------------------------------------- > Slide 1 > > * Item 1 > * Item 2 > > !--- > > Slide 2 > > Some thing really import > goes here, with custom markdown syntax. > > !--- > > Slide 3 > > ```python > for i in range(10): > print i > ``` > > This needs to be converted to, notice the '!---' lines are replace with <section>. > ---demo.html---------------------------------------------------------------- > <section> > <p>Slide 1</p> > <ul> > <li>Item 1</li> > <li>Item 2</li> > </ul> > </section> > <section> > <p>Slide 2</p> > <p>Some thing really import > goes here, with custom markdown syntax.</p> > </section> > <section> > <p>Slide 3</p> > <p><code>python > for i in range(10): > print i</code></p> > </section> > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |
From: Slaughter, A. E <and...@in...> - 2016-05-25 23:48:53
|
I am working on creating a custom extension to parse markdown into Reveal.js <http://lab.hakim.se/reveal-js/#/> slides. I understand that Reveal.js already understands markdown, but I want to parse additional custom syntax that I already generated, thus I want to convert to html directly. Has anyone done something similar or can someone provide me with a similar example? I am just looking for something to kick me in the proper direction, I have created custom pattern extensions but I believe I will need a BlockProcessor or possibly a Preprocessor to do this. In short, I need to convert the demo.md to the demo.html shown below, which simply requires the delimiter (!---) to mark the location of a <section> break. Any help pointing me in the correct direction would be greatly appreciated. ---demo.md-------------------------------------------------------------- Slide 1 * Item 1 * Item 2 !--- Slide 2 Some thing really import goes here, with custom markdown syntax. !--- Slide 3 ```python for i in range(10): print i ``` This needs to be converted to, notice the '!---' lines are replace with <section>. ---demo.html---------------------------------------------------------------- <section> <p>Slide 1</p> <ul> <li>Item 1</li> <li>Item 2</li> </ul> </section> <section> <p>Slide 2</p> <p>Some thing really import goes here, with custom markdown syntax.</p> </section> <section> <p>Slide 3</p> <p><code>python for i in range(10): print i</code></p> </section> |
From: Waylan L. <way...@ic...> - 2016-05-24 00:07:24
|
Daniel, Sorry for the delayed response. You are correct that an inlinepattern would not be able to do this alone. Inlinepatterns have no knowledge about the context and no access to the parent. You will probably need to use a combination of multiple different processors. Perhaps an inlinepattern and a treeprocessor. For an example of how to use multiple different processors together, I would suggest taking a look at the footnotes extension. A preproccessor finds the footnotes and stores them on the the Markdown class instance, a inlinepattern creates the footnote links, and a postprocessor inserts the footnotes into the document. I expect you would do something similar. Except that in your case the inlinepattern would store the strings on the class instance and a treeprocessor would insert the new elements in the appropriate locations. At least that is the approach I would start with. Hope that helps and feel free to ask specific questions if you need to. Waylan Limberg > On May 19, 2016, at 10:32 AM, Daniel Miller <dm...@am...> wrote: > > I'm new to both Python and Python-Markdown - so if I express myself poorly I apologize. > > I asked a previous question - which was probably the wrong one. So I'll try this way. Given some Markdown source, where a delimited string appears, I want to strip those delimiters and leave the text exactly where it is - AND create a new <span> element that should be inserted into the tree before the enclosing paragraph. Looking at examples for inlinepatterns I don't see how to do that. > > -- > Daniel > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |
From: Daniel M. <dm...@am...> - 2016-05-19 14:32:34
|
I'm new to both Python and Python-Markdown - so if I express myself poorly I apologize. I asked a previous question - which was probably the wrong one. So I'll try this way. Given some Markdown source, where a delimited string appears, I want to strip those delimiters and leave the text exactly where it is - AND create a new <span> element that should be inserted into the tree before the enclosing paragraph. Looking at examples for inlinepatterns I don't see how to do that. -- Daniel |
From: Dave P. <dav...@gm...> - 2016-05-19 06:49:39
|
On 19 May 2016 at 02:43, Daniel Miller <dm...@am...> wrote: > I found a legacy extension that generates simple pullquotes (mdx_pullquote). > A couple of minor tweaks and it is compatible with current Markdown/Pelican > versions. This works quite well - except for one item. > Markdown source: > This is the base text. This can be very long. [This is special](+). The > delimeters shown are what the current plugin uses with a inlinepattern. > > Current output html using only inlinepattern: > <p>This is the base text. This can be very long. <span data-pullquote="This > is special">This is special</span>. The delimeters shown are what the > current plugin uses with a inlinepattern.</p> > > Desired output html using...(here's where I need help) > <span>This is special</span> > <p>This is the base text. This can be very long. This is special. The > delimeters shown are what the current plugin uses with a inlinepattern.</p> > > What extension tool would possibly work for this? Treeprocessor? An xpath tool, only if the generated html is well formed. the real problem is isolating the span from others? There appears to be no class attribute to differentiate it from other spans? If you can change it to <span class="special"> then it is easy. An identity transform with a template matching the very first span with that class attribute. <xsl:template match="span[@class='special']"/> which will remove it... It may well be easier to remove it where it is generated? I.e. remove the source of the problem, not a symptom? HTH -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk |
From: Daniel M. <dm...@am...> - 2016-05-19 01:43:49
|
I found a legacy extension that generates simple pullquotes (mdx_pullquote). A couple of minor tweaks and it is compatible with current Markdown/Pelican versions. This works quite well - except for one item. The generated html from the processing (Markdown is used as a preprocessor for Pelican for generating html) places each paragraph in a <p> (which is correct) and delimits the appropriate text with a <span> within the paragraph. The problem is because the <span> appears within the paragraph, and it appears wherever the text is defined - vertical placement of the span is limited. If that's not clear I have a fiddle at https://jsfiddle.net/HeavyThumper/e4e01p0h/ that shows a sample generated html. What I would like is to have the selected text copied to a <span> or <div> that is declared before and outside of the base <p>. Simple example: Markdown source: This is the base text. This can be very long. [This is special](+). The delimeters shown are what the current plugin uses with a inlinepattern. Current output html using only inlinepattern: <p>This is the base text. This can be very long. <span data-pullquote="This is special">This is special</span>. The delimeters shown are what the current plugin uses with a inlinepattern.</p> Desired output html using...(here's where I need help) <span>This is special</span> <p>This is the base text. This can be very long. This is special. The delimeters shown are what the current plugin uses with a inlinepattern.</p> What extension tool would possibly work for this? Treeprocessor? -- Daniel |
From: Dr R. W. <rai...@gm...> - 2016-04-07 13:41:19
|
Waylan, On Wednesday, 2016-04-06 18:31:57 +0000, you wrote: > ... > If you would like HTML entities to be escaped as well as HTML tags, then you can remove the `entity` inlinePattern. Just add the appropriate line to your Extension class: > > class EscapeHtml(Extension): > def extendMarkdown(self, md, md_globals): > del md.preprocessors['html_block'] > del md.inlinePatterns['html'] > del md.inlinePatterns['entity'] > > Hope that helps. Works like a charme, thankyou :-) Sincerely, Rainer |
From: Waylan L. <way...@ic...> - 2016-04-06 19:32:11
|
Sorry for the delayed response. I found this message at the bottom of a long list of things waiting for me to write a reply. If you would like HTML entities to be escaped as well as HTML tags, then you can remove the `entity` inlinePattern. Just add the appropriate line to your Extension class: class EscapeHtml(Extension): def extendMarkdown(self, md, md_globals): del md.preprocessors['html_block'] del md.inlinePatterns['html'] del md.inlinePatterns['entity'] Hope that helps. Waylan Limberg On Mar 25, 2016, at 11:57 AM, Dr Rainer Woitok <rai...@gm...> wrote: Greetings, in the release notes for version 2.6 I found the following workaround for the former "save_mode='escape'" option: $ cat test #! /usr/bin/env python # -*- coding: iso-8859-1 -*- import markdown from markdown.extensions import Extension class EscapeHtml(Extension): def extendMarkdown(self, md, md_globals): del md.preprocessors['html_block'] del md.inlinePatterns['html'] print markdown.markdown('<&>:& becomes &', extensions=[EscapeHtml()]) $ ./test <p><&>:& becomes &</p> $ However, I would expect the output to be <p><&>:& becomes &amp;</p> and that is also what the former "save_mode='escape'" did. Is there an easy way to modify the above "EscapeHtml" extension so it will also esc- ape the "&" in "&"? Any pointers appreciated. Sincerely, Rainer ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Python-markdown-discuss mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |
From: Dr R. W. <rai...@gm...> - 2016-03-25 15:56:59
|
Greetings, in the release notes for version 2.6 I found the following workaround for the former "save_mode='escape'" option: $ cat test #! /usr/bin/env python # -*- coding: iso-8859-1 -*- import markdown from markdown.extensions import Extension class EscapeHtml(Extension): def extendMarkdown(self, md, md_globals): del md.preprocessors['html_block'] del md.inlinePatterns['html'] print markdown.markdown('<&>:& becomes &', extensions=[EscapeHtml()]) $ ./test <p><&>:& becomes &</p> $ However, I would expect the output to be <p><&>:& becomes &amp;</p> and that is also what the former "save_mode='escape'" did. Is there an easy way to modify the above "EscapeHtml" extension so it will also esc- ape the "&" in "&"? Any pointers appreciated. Sincerely, Rainer |
From: Dave P. <dav...@gm...> - 2016-03-23 17:00:55
|
On 23 March 2016 at 16:50, Maurice van der Pot <gri...@kf...> wrote: > On Wed, Mar 23, 2016 at 07:26:33AM +0000, Dave Pawson wrote: >> > It might be, but I consider rowspan/colspan to be a content decision and >> > not a styling one. >> >> I disagree. Presentation - spanning, is not, IMHO, content. > > Ok, then I'm not sure how you would separate the content from spanning. > Would you always create all cells in the content and merge them in > presentation? The content (my view) is within the cells, not how the cell content is shown. > > What would you expect to find in the content for a table that has a row > of which the first cell should span 2 columns? As today |content|| then some 'identity' for that row (table[@id='table1']/tr[3]/td[1] ) then some styling information, e.g. 'span=2' which enables the presentational aspect to be specified external to the content? > > And similarly, what would you expect in the content for a table that has > a cell in the first column that (when presented) should span 2 rows? The same mechanism will work. For example table[@id='table1']/tr[3]/td[1], rowspan=2 with no change to MD syntax? HTH -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk |
From: Maurice v. d. P. <gri...@kf...> - 2016-03-23 16:51:51
|
On Wed, Mar 23, 2016 at 09:52:15AM -0400, Waylan Limberg wrote: > Please see my response here: > https://github.com/waylan/Python-Markdown/pull/74#issuecomment-3622297 > > So to answer your question, no I am not interested in making changes to > th existing Extension. I would suggest you build your own. Ah, a clear description of your position. Thanks! Maurice. -- Maurice van der Pot Kdiff3 developer gri...@kf... http://kdiff3.sourceforge.net Tdiff3 developer https://github.com/Griffon26/tdiff3 |