similar to: html2text in php

Displaying 20 results from an estimated 300 matches similar to: "html2text in php"

2007 Oct 08
1
First Markdownify Beta released
Hi folks! I finally released the first Beta of Markdownify - the HTML to Markdown converter for PHP. It is the successor to the old `html2text.php` and is much more stable. It's pretty much a complete rewrite and supports all Markdown and PHP Markdown Extra syntax features. It's beta since I still have to add a word wrapping feature and "Markdown inside block elements" is
2007 Mar 22
4
converting html with \xa9 to Markdown and using iconv?
The html document various characters like ? \xa0 ? \xa9 (Copyright symbol) (and others). I tried using html2text.py but it didn't like these characters. Any ideas on how I can use iconv or another tool to convert documents like this so I can then convert to Markdown? I don't want to do manually as I have around 500+ documents. Jeremy C. Reed
2006 Oct 17
2
back-translation and round-tripping
i'll be doing some experiments myself, but i thought i'd ask here first about back-translation and round-tripping with markdown and its xhtml output. the object is to take markdown output, reduce it back to a markdown text-file, then regenerate the output again and compare it with the "original" output, repeating if necessary until there exists a pair of files that give perfect
2007 Aug 08
2
Backtick Hickup
I'm using Michel Fortin's MDTest cases to rewrite my html2text.php script. Just now I stumbled upon this bug (in PHP Markdown at least): # Input: Backtick: ``\``` # Output: <p>Backtick: ``&#96;``</p> # Should-Be Output: <p>Backtick: <code>`</code></p> If you (Michel) are already aware of this, just ignore me ;-) -- Milian Wolff
2008 Feb 08
1
unwanted paragraph (syntax edge-case)
Hi list! Take this markdown input: * asdf * asdf * asdf asdf What I want: <ul> <li>asdf <ul> <li>asdf</li> <li>asdf</li> </ul> <p>asdf</p></li> </ul> But markdown puts the first asdf into a paragraph. There is nothing I can do
2006 Apr 20
3
[LLVMdev] Oddity in StackerParser.y.
Hi, $ g -1 '^Module' StackerParser.y /* A module is just a DefinitionList */ Module : { SCI->handle_module_start( ); } DefinitionList { $$ = SCI->handle_module_end( $2 ); } ; $ It's been years since I was heavily into yacc, but shouldn't it be s/$2/$1/? Cheers, Ralph.
2006 Apr 20
0
[LLVMdev] Oddity in StackerParser.y.
No, $2 is correct. The { } code block before DefinitionList is counted (or more precisely, the empty sequence of terminals preceding it is counted). Ralph Corderoy wrote: >Hi, > > $ g -1 '^Module' StackerParser.y > /* A module is just a DefinitionList */ > Module : { SCI->handle_module_start( ); } > DefinitionList { $$ =
2007 May 28
1
svg as a spescial case for image
SVG starts to become more useful in browsers like Firefox, OmniWeb, Opera and soon Safari. There is a couple problem. Since no browser support svg embedded with img one need to fall back to html from: <object data="/path/to/img.svg" type="image/svg+xml" width="512" height="384">Alt text</object> Second, one need to write the width
2015 Jan 27
5
[LLVMdev] [cfe-dev][llvmdev] Clang 3.6 and trunk, high RSS usage compared to GCC (12.5GB vs. 0.5GB)
Hi, I found that after moving to Clang pre-3.6 (git 65d8b4c4998b3a0c20934ea72ede72ef4838a004) and trunk (git 718825a8666acd9ceaab70fc7868332f20e2758f) our internal build machines started going offline in Jenkins. Clang after 3.5 release is consuming extreme amounts of memory in some cases. I have uploaded [1] one of affected files. $ g++ -std=c++11 -c -O1 -fPIC vpp_generated.ii -o
2007 Sep 02
1
[Bug] PHP Markdown (Extra) generates invalid HTML for code blocks
PHP Markdown v 1.0.1i and PHP Markdown Extra v 1.1.5 generate invalid HTML for code blocks Take this input: paragraph codeblock Markdown will generate: <p>paragraph</p> <pre><code>codeblock </pre></code> Notice the wrong position of the closing code tag. -- Milian Wolff http://milianw.de
2006 Jul 02
1
Newline before </code></pre>
Hello! What's the point in adding a newline before the closing tags of a preformatted code block? Example: This is Code Will become: <pre><code>This is Code </code></pre> (In both PHP and Perl Markdown) I don't really see the point, especially because this is not what I would want to see. With a normal stylesheet which has white-space:pre; set on
2007 Sep 02
1
[Possible Bug]: Additional <p> wrapper around HTML input
I hope this is not by design and not an already discussed bug. Take the following input: <hr id="foo" /> <hr id="foo"> <hr id="foo"/> <hr id="foo" /> <hr id="foo"> <hr id="foo"/> If this is run through Markdown a paragraph will wrap hr's numer 4-6. This behaviour
2007 Oct 29
1
[Bug] Codeblock in _second_ line
Take the following input and both `Markdown.pl` and PHP Markdown will fail: ~~~Input~~~~~~ Codeblock ~~~End~~~~~~~ ~~~Expected~~~~ <pre><code> Codeblock</pre></code> ~~~End~~~~~~~ ~~~Actual Result~~ <p>Codeblock</p> ~~~End~~~~~~~~ There is already a testcase in MDTest for codeblocks in the first line, though the above is still not handled properly! --
2009 Apr 23
2
No Markdown in <div>s or <table>s ?
>From http://daringfireball.net/projects/markdown/syntax#html: > Note that Markdown formatting syntax is not processed within block-level > HTML tags. E.g., you can?t use Markdown-style *emphasis* inside an > HTML block. [...] Unlike block-level HTML tags, Markdown syntax is > processed within span-level tags. How do people work around this when they want to apply Markdown to text
2007 Mar 06
2
acronym tag
Hello, is there an acronym method in php markdown extra ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://six.pairlist.net/pipermail/markdown-discuss/attachments/20070306/e146240b/attachment.html
2008 Mar 25
2
a JavaScript front-end for Babelmark
Hi, I've built a quick-and-dirty diff GUI for Babelmark (thanks, Michel!). You can get it as a bookmarklet here: http://attacklab.net/babelmark/ If either Michel or Tom is interested in hosting this, I'll be happy to do the grunt work for a real integration. It's kind of pain in the ass to hit the bookmarklet every time you get new data from the server. I've tested this
2008 Mar 14
1
Markdown doesn't always generate XHTML
Hello everybody, I've just noticed that markdown doesn't always generate XHTML. In particular the input <script src="http://evilserver.net/evil.js"> generates the output: <p><script src="http://evilserver.net/evil.js"></p> (This is the markdown dingus at daring fireball, and the markdownj implementation exhibits the same problem. I
2007 Jan 19
1
Is this possible to do?
I'm a bit confused if this is possible to do. I would like to write some instructional pages using markdown, here is a short example of my problem. The text looks like this: ============================================================ Risken ?r dock att du har lite mer komplicerade objekt, tex att det ?r uppbyggt av flera delobjekt: ![A complex object](images/CloneAdvancedObject.png) Om
2008 Feb 25
3
Whitespace in img src
Hello, markdown (Python implementation) seems to render: ![alternativer text](pfad/und/eine lange/url zum bild.jpg) to <img src="pfad/und/eine" title="lange/url zum bild.jpg" alt="alternativer text"/> breaking the URL at the whitespace. AFAIK whitespaces are ok in URLs so why is it breaking up the URL here? Thanks, Florian -- I'm using an
2006 Aug 03
1
Markdown and the hCal microformat
Hi, I've got a suggestion for adding something to Markdown's syntax. I'm new to the list, so I don't know if this is likely to be received well - I'm aware that it's not all that common (yet) to want to do something like this, and I don't know where everyone here stands on if or how to make markup more meaningful. I'd like to generate some microformated