Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am just downloaded and installed the module.
The following message displayed when I entered some stuff in markdown syntax.
modules\marksmarty\markdown.php line:826 : preg_replace_callback() [function.preg-replace-callback]: Unknown modifier '|'
I tried it with the following
## aa ##
* Abacus
* answer
* Bubbles
1. bunk
2. bupkis
* BELITTLER
3. burper
* Cunning
Would you please tell me if I missed something during installation ? Or did I find a bug?
Here is a list of info
- OS: XP
- Drupal version: 4.6.3
- Browser tested: Firefox, IE, Opera
- php: v5.1.1
Comments
Comment #1
pfaocleWe had this on our new server - it was down to PHP being built without Character Type Functions. They should be enabled by default post PHP 4.2.0, but if you're using a custom-built PHP set up, or are on a server with a particular/special port (like we are with FreeBSD) then you should check this first.
(Whack
phpinfo();
into a file and hit it with your browser, then search for 'ctype' - make sure the table is present on the page, and enabled.)
HTH
Comment #2
codepoet CreditAttribution: codepoet commentedI'm getting this as well, and I have ctype enabled. Other ideas?
Comment #3
codepoet CreditAttribution: codepoet commentedI know better, I should leave details...
Drupal 4.6.7, PHP 5.1.1
Comment #4
codepoet CreditAttribution: codepoet commentedFound it. PHP 5.1 changed how that function works. Get a new version of the markdown.php file and replace the one in the module with it and it works.
http://warpspire.com/journal/programming/php-511-markdown-and-wordpress-...
Filed as a bug so the maintainer can update the file, if HEAD isn't already updated. If not, can we get the 4.6.0 package updated with it?
Comment #5
teradome CreditAttribution: teradome commentedI'll try to get this in over the weekend. Thanks for tracking the issue down!
Comment #6
teradome CreditAttribution: teradome commentedthe 4.6 tag has been updated -- the package should rebuild later today.
Comment #7
teradome CreditAttribution: teradome commentedOh and just to note, 4.7 and HEAD have the latest versions as well.
Comment #8
(not verified) CreditAttribution: commented