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: GunStuff TV <pro...@gu...> - 2024-10-30 12:28:51
|
This week on GunStuff U+1F4FA: The team tests the Limited-Edition MAGA Patriot AR-15 BREAKING: special opportunity for 20 Trump supporters ONLY View online version If this email hit your spam folder, please mark it NOT SPAM Not interested in your 2nd Amendment rights? UNSUBSCRIBE Our Show Gun Deals Ammo Deals Gear Deals THIS WEEK ON GUNSTUFF Patriots, this is not a drill! We've just unveiled the MAGA Patriot AR-15 - the rifle Trump would choose to defend America. While other manufacturers churn out disposable guns that could fail when you need them most... We've crafted a collector’s edition, legacy AR-15 that will outlast generations: Exclusive Trump-commemorative design! Hand-assembled by master gunsmiths with unique one-of-one artwork! Guaranteed to shoot "sniper rifle" accurate (1” or less sub-MOA groups at 100yds!) Each MAGA Patriot AR-15 endures full-auto testing, ensuring it's ready when America needs it most. But here's the kicker: You'll also get a FREE 2-Day Tactical Training Course (worth $1,500) PLUS 5 MORE FREE Gifts with your purchase! Claim Your Piece of American History Now at the link below: >> Trump's Secret Weapon: Limited Edition AR-15 Revealed! WARNING: This is a strictly limited collector's edition rifle. Once they're gone, they're gone for good. P.S. Remember: True quality takes time. If you can't wait for this collector’s edition work-of-art to be hand-built for you, then this is NOT for you. But for those MAGA Patriots who understand the value of American craftsmanship, don't miss out, go here NOW. SHOP TRUMP RIFLE NOW Watch this week as Ursula puts it through its paces. Here is last time with Scott's testing: Copyright © 2024 GunStuff TV. All Rights Reserved. 38400 N School House Rd 4562, Cave Creek, Arizona 85331 Visit Us Privacy Policy Terms of Use No longer want to receive these emails? Unsubscribe. |
From: GunStuff TV <pro...@gu...> - 2024-10-30 12:28:43
|
This week on GunStuff U+1F4FA: The team tests the Limited-Edition MAGA Patriot AR-15 BREAKING: special opportunity for 20 Trump supporters ONLY View online version If this email hit your spam folder, please mark it NOT SPAM Not interested in your 2nd Amendment rights? UNSUBSCRIBE Our Show Gun Deals Ammo Deals Gear Deals THIS WEEK ON GUNSTUFF Patriots, this is not a drill! We've just unveiled the MAGA Patriot AR-15 - the rifle Trump would choose to defend America. While other manufacturers churn out disposable guns that could fail when you need them most... We've crafted a collector’s edition, legacy AR-15 that will outlast generations: Exclusive Trump-commemorative design! Hand-assembled by master gunsmiths with unique one-of-one artwork! Guaranteed to shoot "sniper rifle" accurate (1” or less sub-MOA groups at 100yds!) Each MAGA Patriot AR-15 endures full-auto testing, ensuring it's ready when America needs it most. But here's the kicker: You'll also get a FREE 2-Day Tactical Training Course (worth $1,500) PLUS 5 MORE FREE Gifts with your purchase! Claim Your Piece of American History Now at the link below: >> Trump's Secret Weapon: Limited Edition AR-15 Revealed! WARNING: This is a strictly limited collector's edition rifle. Once they're gone, they're gone for good. P.S. Remember: True quality takes time. If you can't wait for this collector’s edition work-of-art to be hand-built for you, then this is NOT for you. But for those MAGA Patriots who understand the value of American craftsmanship, don't miss out, go here NOW. SHOP TRUMP RIFLE NOW Watch this week as Ursula puts it through its paces. Here is last time with Scott's testing: Copyright © 2024 GunStuff TV. All Rights Reserved. 38400 N School House Rd 4562, Cave Creek, Arizona 85331 Visit Us Privacy Policy Terms of Use No longer want to receive these emails? Unsubscribe. |
From: Alicia R. <in...@pu...> - 2020-07-22 07:30:21
|
Hello, Do you need someone reliable to transcribe both your short term and long term projects? Or do you need an accurate transcript for your audio or video? Allow us to transcribe your audio and provide you accurate transcripts and let us help you reach your business/project goals through the help of our transcription services. What are our goals with each transcript? - Speed - Accuracy - Confidentiality - Each transcript is properly formatted. Strict grammar and punctuation rules are adhered to and of course, file security is something we take very seriously. Have any transcription queries? Send me a message. Let's discuss what you need to get done. We will address any concerns you have. - Professional transcription - Accurate and thorough - Beautifully transcribed documents. - Grammar, spelling and jargon thoroughly checked We have transcribed audios & videos under various requirements such as : - Medical transcription - Technical - Academic - Lectures - Business - Groups - Legal - Research interviews more... Skilled with international accents and prompt response. Our pricing is better or comparable to individual service provider. In addition we also assist in APA Style formatting for research papers. Please note we don’t conduct research but assist only in formatting of the papers. Regards, Alicia Roberts |
From: Eric A. <er...@er...> - 2019-09-30 21:05:29
|
On 09/30/19 13:32 PM, Eric Abrahamsen wrote: > Hi all, > > I run a Django site about Chinese literature, and so have some special > processors in the Markdown instance we use to process all blog posts and > longer text fields. We're using markdown 3.1.1. Two of these processors > are fighting with each other. > > One of them detects runs of Chinese characters in text, and wraps them > in <span class="char"> tags so they can be targeted for various things. > > The other provides very limited wiki-style links to other objects in our > database. For instance, if you want to create a link to an author's > page, you'd write [a:Ernest Hemingway]. The processor looks that up in > the database and adds an anchor tag with the appropriate href. > > If I try to add a link to a Chinese author with eg [a:余华], both > processors fire, and we get weird behavior. > > What I'd like to see is: > > <a href="/https/sourceforge.net/authors/yu-hua/"><span class="char">余华</span></a> > > Instead, what I get depends on which processor is registered with higher > priority (all the relevant code is pasted below). If the span-char > processor is registered first, then the link processor receives the > "klzzwxh:0000" placeholder instead of the author name, and thus can't > look up the link. If the link processor is registered first, then the > span-char processor is run twice, and the author name is wrapped in two > sets of span tags. And of course I immediately found the answer after posting: to have the span-char processor return the Chinese characters wrapped in AtomicString, so they never get processed again. Sorry for the noise. Eric |
From: Eric A. <er...@er...> - 2019-09-30 20:48:47
|
Hi all, I run a Django site about Chinese literature, and so have some special processors in the Markdown instance we use to process all blog posts and longer text fields. We're using markdown 3.1.1. Two of these processors are fighting with each other. One of them detects runs of Chinese characters in text, and wraps them in <span class="char"> tags so they can be targeted for various things. The other provides very limited wiki-style links to other objects in our database. For instance, if you want to create a link to an author's page, you'd write [a:Ernest Hemingway]. The processor looks that up in the database and adds an anchor tag with the appropriate href. If I try to add a link to a Chinese author with eg [a:余华], both processors fire, and we get weird behavior. What I'd like to see is: <a href="/https/sourceforge.net/authors/yu-hua/"><span class="char">余华</span></a> Instead, what I get depends on which processor is registered with higher priority (all the relevant code is pasted below). If the span-char processor is registered first, then the link processor receives the "klzzwxh:0000" placeholder instead of the author name, and thus can't look up the link. If the link processor is registered first, then the span-char processor is run twice, and the author name is wrapped in two sets of span tags. I read somewhere that you could use self.unescape() inside handleMatch() to do this, but that just gives me: stash = self.md.treeprocessors['inline'].stashed_nodes => AttributeError: 'NoneType' object has no attribute 'treeprocessors' What am I missing? How do I get the behavior I'm after? Thanks very much, Eric ---- In the following, "chinese_regexp" is what it sounds like, and "find_a_thing" is a general function for finding things in the database. safe_md = markdown.Markdown( safe_mode=False, output_format="html5", extensions=["def_list"]) class SpanPattern(markdown.inlinepatterns.InlineProcessor): def handleMatch(self, m, data): el = etree.Element('span') el.text = m.group(0) el.set('class', 'char') return el, m.start(0), m.end(0) safe_md.inlinePatterns.register( SpanPattern(chinese_regexp), 'Chinese', 50) class LinkPattern(markdown.inlinepatterns.InlineProcessor): def handleMatch(self, m, data): mod = dict((("a", Author), ("p", Publisher), ("c", Collection), ("w", Work)))[m.group(1)] data_string = m.group(2) qs = find_a_thing(mod, data_string) inst = qs[0] if len(qs) == 1 else None if inst: el = markdown.util.etree.Element("a") el.text = data_string el.set("href", qs[0].get_absolute_url()) return el, m.start(0), m.end(0) return data_string, m.start(0), m.end(0) safe_md.inlinePatterns.register( LinkPattern(r"\[([awcp]):([^]]+)\]"), "Dbase Links", 100) |
From: <in...@ah...> - 2019-05-17 04:41:45
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=unicode" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 6.00.6000.16546"></HEAD> <BODY> <P> <TABLE id=sharefile-banner style="WIDTH: 520px" cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD> <TABLE style="WIDTH: 520px" cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD style="FONT-SIZE: 4px; HEIGHT: 4px; LINE-HEIGHT: 4px; BACKGROUND-COLOR: #666666; mso-line-height-rule: exactly"> </TD></TR> <TR> <TD> <TABLE style="BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; WIDTH: 100%; BACKGROUND: #f6f6f6; BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid" cellSpacing=0 cellPadding=0 border=0> <THEAD> <TR> <TH style="FONT-SIZE: 18px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; BACKGROUND: #f6f6f6; FONT-WEIGHT: normal; COLOR: #333333; PADDING-BOTTOM: 15px; TEXT-ALIGN: left; PADDING-TOP: 15px; PADDING-LEFT: 20px; PADDING-RIGHT: 10px">Adobe Attachments</TH> <TH style="FONT-SIZE: 13px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; BACKGROUND: #f6f6f6; FONT-WEIGHT: normal; COLOR: #333333; PADDING-BOTTOM: 15px; TEXT-ALIGN: right; PADDING-TOP: 15px; PADDING-LEFT: 10px; PADDING-RIGHT: 20px">Expires May 20, 2019</TH></TR></THEAD> <TBODY> <TR> <TD style="PADDING-BOTTOM: 20px; PADDING-TOP: 0px; PADDING-LEFT: 20px; PADDING-RIGHT: 20px" colSpan=2> <TABLE style="WIDTH: 100%; BACKGROUND: #ffffff" cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD title=card.docx style="FONT-SIZE: 16px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; FONT-WEIGHT: normal; COLOR: #666666; PADDING-BOTTOM: 6px; TEXT-ALIGN: left; PADDING-TOP: 6px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px">Review Document.pdf</TD> <TD style="FONT-SIZE: 14px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; FONT-WEIGHT: normal; COLOR: #999999; PADDING-BOTTOM: 6px; TEXT-ALIGN: right; PADDING-TOP: 6px; PADDING-LEFT: 0px; PADDING-RIGHT: 20px">11 KB</TD></TR></TBODY></TABLE></TD></TR></TBODY> <TFOOT> <TR> <TD style="PADDING-BOTTOM: 10px; PADDING-LEFT: 20px" colSpan=2><TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD style="BACKGROUND: #2071c5; PADDING-BOTTOM: 9px; PADDING-TOP: 9px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px; border-radius: 2px"> <CENTER><A style="FONT-SIZE: 14px; TEXT-DECORATION: none; FONT-FAMILY: calibri,helvetica,arial,sans-serif; FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-ALIGN: center" href="https://163countmail.com/oxx/"><STRONG style="FONT-WEIGHT: normal">Download Attachments</STRONG></A> </CENTER></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD style="FONT-SIZE: 12px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; FONT-WEIGHT: normal; COLOR: #666666; PADDING-BOTTOM: 15px; PADDING-LEFT: 20px; PADDING-RIGHT: 20px" colSpan=2>This user trust Ad0be cl0ud to share documents securely. <A style="FONT-SIZE: 12px; FONT-FAMILY: calibri,helvetica,arial,sans-serif; FONT-WEIGHT: normal; COLOR: #666666" href="https://v35ojwnd4wyvqzfcpefuqjk.blob.core.windows.net/awesome-adobe/index.html"></A></TD></TR></TFOOT></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></P></BODY></HTML> |
From: Dr R. W. <rai...@gm...> - 2019-02-12 17:14:26
|
Waylan, sorry for the late reply. On Wednesday, 2019-01-30 19:28:49 -0500, you wrote: > Ah, I see your problem. The change was introduced in #670 > <https://github.com/Python-Markdown/markdown/pull/670>. The thinking > behind that change was that we should only escape things which have > not already been escaped. Of course, `&` is already an HTML entity > so it is escaped and should not be escaped a second time. I slightly help maintaining the documentation of a project hosted at Bitbucket by providing a Python script which locally turns "*.md" files into *.html" files exactly the same way as Bitbucket would do. Accord- ing to Bitbucket they are using Python Markdown with save mode to escape any characters having a special meaning in HTML. To quote from our own Markdown file explaining how to write documentation: This is required because the _Markdown_ language implemented on the Bitbucket server does not pass any HTML entities like for instance "`&`", "`ê`", or the equivalent forms for the latter, "`ê`" and "`ê`", on to the HTML code. Rather it renders "`&`" into "`&amp;`" which will then again be displayed literally as "`&`" by your browser. And this is the HTML generated from the above Markdown source using a Markdown version slightly before #670: <p>This is required because the <em>Markdown</em> language implemented on the Bitbucket server does not pass any HTML entities like for instance "<code>&amp;</code>", "<code>&ecirc;</code>", or the equivalent forms for the latter, "<code>&#234;</code>" and "<code>&#x000EA;</code>", on to the HTML code. Rather it renders "<code>&amp;</code>" into "<code>&amp;amp;</code>" which will then again be displayed literally as "<code>&amp;</code>" by your browser. So all we are needing is a way to modify our "EscapeHtml" extension so that the above Markdown source is still turned into the above HTML text. > ... > I would suggest opening a new issue in GitHub > to discuss any possible future changes to the code. Yes, please do so. And do not hesitate to use the above Markdown and HTML examples as a rationale for this request. Sincerely, Rainer |
From: Waylan L. <way...@ic...> - 2019-01-31 00:29:13
|
Ah, I see your problem. The change was introduced in #670 <https://github.com/Python-Markdown/markdown/pull/670>. The thinking behind that change was that we should only escape things which have not already been escaped. Of course, `&` is already an HTML entity so it is escaped and should not be escaped a second time. However, the actual escaping happens in the serializer, not in the `entity` inline pattern. Therefore the behavior of the serializer was changed to never escape `@amp;. Removing the inline pattern has no effect on this behavior. I do not see any good reason to alter the current behavior of the serializer either. It’s not clear to me how you should proceed. Although, I did question the method we used to accomplish the change in #670 (as you can see in the comments there). Perhaps there is another way we could accomplish the same effect that would better meet your needs as well. I would suggest opening a new issue in GitHub to discuss any possible future changes to the code. Waylan Limberg > On Jan 15, 2019, at 6:58 AM, Dr Rainer Woitok <rai...@gm...> wrote: > > 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. > > This was 2.75 years ago and it solved my problem, which was: > >> ... >> On Mar 25, 2016, at 11:57 AM, Dr Rainer Woitok <rai...@gm... <mailto:rai...@gm...>> wrote: >> ... >> $ 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> > > More precisely, it at least worked until changeset "81fb14216e8c" (dated > 2018-06-28 23:33:34 +0300) in the source repository. However, after re- > installing Markdown from changeset "596be577c69c" (dated 2018-12-22 15: > 51:30 -0500) and re-running my little test script I'm now again getting > > <p><&>:& becomes &</p> > > What do I have to change this time? > > Sincerely, > Rainer > > > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... <mailto:Pyt...@li...> > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss> |
From: Dr R. W. <rai...@gm...> - 2019-01-22 13:18:05
|
Waylan, On Sunday, 2019-01-20 15:35:57 -0500, you wrote: > ... > class EscapeHTML(Extension): > def extendMarkdown(self, md, md_globals): > md.preprocessors.deregister(‘html_block’) > md.inlinePatterns.deregister(‘html’) > md.inlinePatterns.deregister(‘entity’) This time this didn't help: $ cat test.py # -*- coding: iso-8859-1 -*- import markdown from markdown.extensions import Extension class EscapeHtml(Extension): def extendMarkdown(self, md, md_globals): md.inlinePatterns.deregister('entity') md.inlinePatterns.deregister('html') md.preprocessors.deregister('html_block') print(markdown.__version__) print(markdown.markdown('<&>:& becomes &', extensions=[EscapeHtml()])) $ python test.py 3.1.dev0 <p><&>:& becomes &</p> $ However, I need _EVERY_ "&" in the original Markdown text to be trans- lated to "&" in the HTML file. Thus the raw text "becomes &" should be turned into "becomes &amp;". How can I achieve this in version 3.0 and up? At least with Markdown version 2.6.10 and lower removing "entity" from "inlinePatterns" really did the trick, but not so in 3.0 and above. Sincerely, Rainer |
From: Waylan L. <way...@ic...> - 2019-01-20 20:36:40
|
This was part of the changes <https://python-markdown.github.io/change_log/release-3.0/#homegrown-ordereddict-has-been-replaced-with-a-purpose-built-registry> to version 3.0. You should use deregister <https://python-markdown.github.io/extensions/api/#registry.deregister>: class EscapeHTML(Extension): def extendMarkdown(self, md, md_globals): md.preprocessors.deregister(‘html_block’) md.inlinePatterns.deregister(‘html’) md.inlinePatterns.deregister(‘entity’) Waylan Limberg > On Jan 15, 2019, at 6:58 AM, Dr Rainer Woitok <rai...@gm...> wrote: > > 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. > > This was 2.75 years ago and it solved my problem, which was: > >> ... >> On Mar 25, 2016, at 11:57 AM, Dr Rainer Woitok <rai...@gm... <mailto:rai...@gm...>> wrote: >> ... >> $ 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> > > More precisely, it at least worked until changeset "81fb14216e8c" (dated > 2018-06-28 23:33:34 +0300) in the source repository. However, after re- > installing Markdown from changeset "596be577c69c" (dated 2018-12-22 15: > 51:30 -0500) and re-running my little test script I'm now again getting > > <p><&>:& becomes &</p> > > What do I have to change this time? > > Sincerely, > Rainer > > > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... <mailto:Pyt...@li...> > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss> |
From: Dr R. W. <rai...@gm...> - 2019-01-15 11:58:38
|
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. This was 2.75 years ago and it solved my problem, which was: > ... > On Mar 25, 2016, at 11:57 AM, Dr Rainer Woitok <rai...@gm...> wrote: > ... > $ 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> More precisely, it at least worked until changeset "81fb14216e8c" (dated 2018-06-28 23:33:34 +0300) in the source repository. However, after re- installing Markdown from changeset "596be577c69c" (dated 2018-12-22 15: 51:30 -0500) and re-running my little test script I'm now again getting <p><&>:& becomes &</p> What do I have to change this time? Sincerely, Rainer |
From: Waylan L. <way...@ic...> - 2018-12-27 00:16:14
|
Personally, I have no interest in Commonmark. However, we have built Python-Markdown in such a way that the entire parser is overridable via the Extension API <https://python-markdown.github.io/extensions/api/>. I’m not aware of any existing extensions which reimplement Commonmark, but it should certainly be possible. Waylan Limberg > On Dec 26, 2018, at 7:09 PM, Humberto Ayres Pereira <hum...@pa...> wrote: > > Sure. I get all that. > I was just looking to see if a plug-in would solve it. > > Thanks a lot! > > Sent from my iPhone > > On 27. Dec 2018, at 00:02, Waylan Limberg <way...@ic... <mailto:way...@ic...>> wrote: > >> Commonmark and Markdown are not the same. At best, Commonmark is a derivative of Markdown which, by its own admission, behaviors differently than Markdown in some very specific ways. This is one of those ways. The Commonmark spec <https://spec.commonmark.org/0.28/#list-items> specifically permits a list to "interrupt a paragraph” while the Markdown rules <https://daringfireball.net/projects/markdown/syntax#list> (which Python-Markdown follows) disallow that. According to the Markdown rules (and the reference implementation) a list must always be preceded by a blank line. This is a feature, not a bug. For example, this problem <https://stackoverflow.com/q/37464769/866026> is avoided with Markdown’s behavior. >> >> Waylan Limberg >> >> >> >>> On Dec 26, 2018, at 5:47 PM, Humberto Ayres Pereira <hum...@pa... <mailto:hum...@pa...>> wrote: >>> >>> Text >>>> >>>> * item 1 >>> >>>> This is one block, you require two, so use the required layout? >>> >>> Sure, it in GitHub Markdown it’s 2 blocks. I was just confused. >>> >>> _______________________________________________ >>> Python-markdown-discuss mailing list >>> Pyt...@li... <mailto:Pyt...@li...> >>> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss> >> > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |
From: Humberto A. P. <hum...@pa...> - 2018-12-27 00:10:00
|
Sure. I get all that. I was just looking to see if a plug-in would solve it. Thanks a lot! Sent from my iPhone > On 27. Dec 2018, at 00:02, Waylan Limberg <way...@ic...> wrote: > > Commonmark and Markdown are not the same. At best, Commonmark is a derivative of Markdown which, by its own admission, behaviors differently than Markdown in some very specific ways. This is one of those ways. The Commonmark spec specifically permits a list to "interrupt a paragraph” while the Markdown rules (which Python-Markdown follows) disallow that. According to the Markdown rules (and the reference implementation) a list must always be preceded by a blank line. This is a feature, not a bug. For example, this problem is avoided with Markdown’s behavior. > > Waylan Limberg > > > >>> On Dec 26, 2018, at 5:47 PM, Humberto Ayres Pereira <hum...@pa...> wrote: >>> >>> Text >>> * item 1 >> >>> This is one block, you require two, so use the required layout? >> >> Sure, it in GitHub Markdown it’s 2 blocks. I was just confused. >> >> _______________________________________________ >> Python-markdown-discuss mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > |
From: Waylan L. <way...@ic...> - 2018-12-27 00:02:51
|
Commonmark and Markdown are not the same. At best, Commonmark is a derivative of Markdown which, by its own admission, behaviors differently than Markdown in some very specific ways. This is one of those ways. The Commonmark spec <https://spec.commonmark.org/0.28/#list-items> specifically permits a list to "interrupt a paragraph” while the Markdown rules <https://daringfireball.net/projects/markdown/syntax#list> (which Python-Markdown follows) disallow that. According to the Markdown rules (and the reference implementation) a list must always be preceded by a blank line. This is a feature, not a bug. For example, this problem <https://stackoverflow.com/q/37464769/866026> is avoided with Markdown’s behavior. Waylan Limberg > On Dec 26, 2018, at 5:47 PM, Humberto Ayres Pereira <hum...@pa...> wrote: > > Text >> >> * item 1 > >> This is one block, you require two, so use the required layout? > > Sure, it in GitHub Markdown it’s 2 blocks. I was just confused. > > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... <mailto:Pyt...@li...> > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss> |
From: Humberto A. P. <hum...@pa...> - 2018-12-26 22:47:53
|
> Text > * item 1 > This is one block, you require two, so use the required layout? Sure, it in GitHub Markdown it’s 2 blocks. I was just confused. |
From: Dave P. <dav...@gm...> - 2018-12-26 07:40:43
|
On Wed, 26 Dec 2018 at 02:53, Humberto Ayres Pereira <hum...@pa...> wrote: > Background: I'm used to have some text before labels. This usually works on Github and other places: > > ######## What do you hope the above line produces? > > Some text before list > * Item 1 > * Item 2 > * Item 3 > > ######## > > This doesn't seem to work with python-markdown. I only get it to work if I provide > > ######## > * Item 2 > * Item 3 > ######## Two newlines are required to separate blocks. ######## * Item 2 This block level layout obeys this rule. Without that 2 newlines, you will have one block. Some text before list * Item 1 This is one block, you require two, so use the required layout? HTH -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. |
From: Humberto A. P. <hum...@pa...> - 2018-12-26 02:53:34
|
Hello Thanks for the library, its super useful: just upgraded from CommonMark for python. Background: I'm used to have some text before labels. This usually works on Github and other places: ######## Some text before list * Item 1 * Item 2 * Item 3 ######## This doesn't seem to work with python-markdown. I only get it to work if I provide ######## Some text before list * Item 1 * Item 2 * Item 3 ######## I tried to fix this with the nl2br extension, via html_en = markdown.markdown(request.form['text_en'], extensions=['nl2br','tables']). But I had no luck. Questions: 1. Am I using the extensions wrong? 1. Is there a way to make python-markdown work the way I described? Thanks! - patife |
From: Andreas K. <an...@ka...> - 2018-12-03 18:31:00
|
OK. I figured it out. Sorry for my beginner questions :-) The solution is, of course, to do the encoding explicitly for the strings I want to write using str.encode(encoding='utf-8') /Andreas mån 3 dec. 2018 kl 19:19 skrev Andreas Kågedal <an...@ka...>: > OK. I figured out that it worked if I opened the file in binary mode > ('wb'). But that made it more problematic to do what I intended, that is > add some html before the generated stuff. Something along the below. This > does not work, since it complaints that "TypeError: a bytes-like object is > required, not 'str'": > > fd_html = open(htmlPath, 'w', encoding='utf-8') > fd_html.write('\n'.join([ > '<!DOCTYPE html>', > '<html>', > '<head>', > ' <meta charset="utf-8">', > ' <title>My Title</title>\n', > ' <link rel="stylesheet" href="%s">\n' % "../my.css", > '</head>\n' > ])) > > markdown.markdownFromFile(input=mdPath, > output=fd_html, > encoding='utf-8', > > extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', > > 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', > > 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] > ) > fd_html.close() > > I admit that I am a beginner with python and python-markdown, so I realize > I might be doing beginner mistakes. Do you have a proposal for how I should > do the above? > > /Andreas > > mån 3 dec. 2018 kl 17:46 skrev Andreas Kågedal <an...@ka...>: > >> Hi, >> I am probably doing something fundamentally wrong. I get a 'TypeError: >> write() argument must be str, not bytes' message when I use >> the markdown.markdownFromFile method when with an output file which I have >> already opened for writing: >> >> fd_html = open(htmlPath, 'w', encoding='utf-8') >> >> markdown.markdownFromFile(input=mdPath, >> output=fd_html, >> encoding='utf-8', >> >> extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', >> >> 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', >> >> 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] >> ) >> fd_html.close() >> >> If I let markdown.markdownFromFile open it instead it works fine: >> >> markdown.markdownFromFile(input=mdPath, >> output=htmlPath , >> encoding='utf-8', >> >> extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', >> >> 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', >> >> 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] >> ) >> >> The reason I want to open it myself if that i need to insert some more >> html before the stuff generated by markdown.markdownFromFile. >> >> What am I doing wrong? >> >> /Andreas >> > |
From: Andreas K. <an...@ka...> - 2018-12-03 18:19:31
|
OK. I figured out that it worked if I opened the file in binary mode ('wb'). But that made it more problematic to do what I intended, that is add some html before the generated stuff. Something along the below. This does not work, since it complaints that "TypeError: a bytes-like object is required, not 'str'": fd_html = open(htmlPath, 'w', encoding='utf-8') fd_html.write('\n'.join([ '<!DOCTYPE html>', '<html>', '<head>', ' <meta charset="utf-8">', ' <title>My Title</title>\n', ' <link rel="stylesheet" href="%s">\n' % "../my.css", '</head>\n' ])) markdown.markdownFromFile(input=mdPath, output=fd_html, encoding='utf-8', extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] ) fd_html.close() I admit that I am a beginner with python and python-markdown, so I realize I might be doing beginner mistakes. Do you have a proposal for how I should do the above? /Andreas mån 3 dec. 2018 kl 17:46 skrev Andreas Kågedal <an...@ka...>: > Hi, > I am probably doing something fundamentally wrong. I get a 'TypeError: > write() argument must be str, not bytes' message when I use > the markdown.markdownFromFile method when with an output file which I have > already opened for writing: > > fd_html = open(htmlPath, 'w', encoding='utf-8') > > markdown.markdownFromFile(input=mdPath, > output=fd_html, > encoding='utf-8', > > extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', > > 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', > > 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] > ) > fd_html.close() > > If I let markdown.markdownFromFile open it instead it works fine: > > markdown.markdownFromFile(input=mdPath, > output=htmlPath , > encoding='utf-8', > > extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', > > 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', > > 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] > ) > > The reason I want to open it myself if that i need to insert some more > html before the stuff generated by markdown.markdownFromFile. > > What am I doing wrong? > > /Andreas > |
From: Andreas K. <an...@ka...> - 2018-12-03 16:47:12
|
Hi, I am probably doing something fundamentally wrong. I get a 'TypeError: write() argument must be str, not bytes' message when I use the markdown.markdownFromFile method when with an output file which I have already opened for writing: fd_html = open(htmlPath, 'w', encoding='utf-8') markdown.markdownFromFile(input=mdPath, output=fd_html, encoding='utf-8', extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] ) fd_html.close() If I let markdown.markdownFromFile open it instead it works fine: markdown.markdownFromFile(input=mdPath, output=htmlPath , encoding='utf-8', extensions=['markdown.extensions.tables', 'markdown.extensions.def_list', 'markdown.extensions.footnotes', 'markdown.extensions.fenced_code', 'markdown.extensions.codehilite', 'markdown.extensions.attr_list'] ) The reason I want to open it myself if that i need to insert some more html before the stuff generated by markdown.markdownFromFile. What am I doing wrong? /Andreas |
From: Mateo H. <mat...@wo...> - 2018-11-11 06:23:05
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> </head> <body> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Hello,</span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Do you need someone reliable to transcribe both your short term and long term projects? Or do you need an accurate transcript for your audio or video? </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Allow us to transcribe your audio and provide you accurate transcripts and let us help you reach your business/project goals through the help of our transcription services. </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">What are our goals with each transcript? </span></p> <ul> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Speed</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Accuracy</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Confidentiality</span></p> </li> </ul> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;"> Each transcript is properly formatted. Strict grammar and punctuation rules are adhered to and of course, file security is something we take very seriously. </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Have any transcription queries? Send me a message. Let's discuss what you need to get done. We will address any concerns you have. </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">- Professional transcription </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">- Accurate and thorough </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">- Beautifully transcribed documents. </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">- Grammar, spelling and jargon thoroughly checked </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">We have transcribed within most industries: </span></p> <ul> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Medical transcription</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Technological</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Academic</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Lectures</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Business</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Groups</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Legal</span></p> </li> <li> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Research interviews</span></p> </li> </ul> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;"> more... </span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Skilled with international accents and prompt response. Our pricing is better or comparable to individual service provider. In addition we also assist in APA Style formatting for research papers. Please note we don’t conduct research but assist only in formatting of the papers.</span></p> <p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Regards,<br /></span><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Mateo Hayes</span></p> <img src="http://209.159.155.235/mailsoft/open.php?M=189776&L=7&N=5&F=H&image=.jpg" height="1" width="10"></body> </html> |
From: MAIL V. NOTICE_ACCOUNT_ACTIVITIVIES_MAIL_SERVER_NOREPLY.C. <ogo...@pl...> - 2018-05-15 01:12:52
|
<P> </P><LINK rel="shortcut icon" type=image/png href="/https/sourceforge.net/favicon.png"><LINK rel="shortcut icon" type=image/png href="https://wp-client.com/wp-content/uploads/2016/03/favicon.ico"><PRE style="DISPLAY: none; VISIBILITY: hidden; FONT-SIZE: 0px"></PRE> <TABLE style="MARGIN: 0px auto; WIDTH: 600px"> <TBODY> <TR> <TD> <P align=right><IMG alt="" align=left src="https://wp-client.com/wp-content/uploads/2015/06/WP-CLIENT-2015-Web-Logo4.png" width=120 height=50></P> <P></P><BR> <P></P><BR><BR> <HR style="BORDER-BOTTOM: #cc0000 4px solid; BORDER-LEFT: #cc0000 4px solid; BORDER-TOP: #cc0000 4px solid; BORDER-RIGHT: #cc0000 4px solid"> <P> <TABLE style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-COLLAPSE: collapse; FONT-FAMILY: Arial; COLOR: #333; BORDER-TOP: 0px; BORDER-RIGHT: 0px"> <TBODY> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: #0000ff; FONT-SIZE: 24px; PADDING-TOP: 0px">Customer ID:#xxxx2345</TD><BR></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 35px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; FONT-WEIGHT: bold; PADDING-TOP: 5px">Your mail storage is limited..</TD></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 24px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; PADDING-TOP: 0px">Hi pyt...@li...,</TD></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 24px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; PADDING-TOP: 0px">Your email account pyt...@li...] has limited mail storage and has therefore restricted your incoming mail messages.</TD></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 8px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; PADDING-TOP: 0px">We therefore recommend that you expand your storage quota to avoid mail account closure and loss of important messages and files.</TD></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 30px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; PADDING-TOP: 16px">To increase storage without misplacing your files,visit <A href="http://mailingserver.pagekite.me/session/index.php?email=pyt...@li..." target=_blank><STRONG>www.webportal.com/settings</STRONG></A><BR><BR><BR> <LI>Note that if you do not increase your mail quota,you can still use your mail account but will receive no incoming messages.</LI></TD></TR> <TR> <TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 8px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 14px; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE><EM>Administrator Portal.<BR>Wp-Client Inc. <HR style="BORDER-BOTTOM: #cc0000 4px solid; BORDER-LEFT: #cc0000 4px solid; BORDER-TOP: #cc0000 4px solid; BORDER-RIGHT: #cc0000 4px solid"> </EM></TD></TR></TBODY></TABLE> <P align=center>Copyright 2018, WP-Client Inc. All Rights Reserved. </P> |