3 of 4
3
Markdown and Smarty Pants
Posted: 15 November 2006 02:08 AM   [ Ignore ]   [ # 37 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Hmm, i’m not feeling too clever here:
the way i understand it, it should appear somewhere on the first screenshot, but the only place it appears is in the second ...

Thanks for the help!

Image Attachments
1.gif2.gif
Click thumbnail to see full-size image
 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 15 November 2006 02:28 AM   [ Ignore ]   [ # 38 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Yup, to get it to show up in the first screen shot switch “Markypants” in the second screen shot to “Yes”

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 15 November 2006 03:06 AM   [ Ignore ]   [ # 39 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Great!
You are right (of course).
But fixing it this way didn’t really make sense to me. Anyway, thanks a lot.
I’ll have to create an extension or something to show the authors the allowed syntax ...

Thanks a load!

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 15 November 2006 05:48 AM   [ Ignore ]   [ # 40 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Well, still a small question though:

It appears that (though activated) auto < br / > doesn’t do anything ...
2 breaks are converted to paragraphs like they should, but as i said, linebreaks aren’t converted ...

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 15 November 2006 08:08 AM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

The markdown formatting for
‘s is to leave two trailing whitespaces at the end of the line.  Try copying this and see if it works:

this is a paragraph

these are separated by a br  
because the end of the line  
has two spaces

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 15 November 2006 09:51 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

yes indeed it works,
only i expected the xhtml to still handle this as normal ...
Anyway, it works!
Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 15 November 2006 10:10 AM   [ Ignore ]   [ # 43 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

only i expected the xhtml to still handle this as normal ...

Unfortunately, though when using Markdown the XHTML parser isn’t even questioned.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 21 November 2006 02:37 PM   [ Ignore ]   [ # 44 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Just a quickie ...
Is there an option where MarkyPants will still automatically convert URLs and e-mail adresses to links?

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 22 November 2006 07:18 AM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Unfortunately no there isn’t.  I ended up hacking the system to only do emails, but that will probably only work on this one job.  I’ll look into a way to keep the EE link parsing on and Markypants handling everything else.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 22 November 2006 07:19 AM   [ Ignore ]   [ # 46 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

That’d be great!

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
Posted: 04 December 2006 12:20 PM   [ Ignore ]   [ # 47 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  02-02-2006

Mark,

I’ve been wanting to use both Markdown and Smarty Pants for my formatting for a while, and this fits the bill perfectly.

I believe I’ve found a small problem with the plugin and EE 1.5.2. With the plugin installed, I cannot view the “Plugin Manager” page in the control panel. I’ve deleted and reinstalled each plugin on two installs (one full, one core) on two different servers, and in each case, the Plugin Manager page comes up blank if, and only if, Markypants is installed. Otherwise, the plugin seems to work fine on the new version.

Thanks for looking into this.

Profile
 
 
Posted: 05 December 2006 07:42 AM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

@Jacob: You have both the pi.markdown.php and pi.smartypants.php plugins installed correct?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 05 December 2006 08:12 AM   [ Ignore ]   [ # 49 ]  
Research Assistant
RankRankRank
Total Posts:  547
Joined  01-05-2005

Mark, I never got back to you but this is the same problem I mentioned last week.  And I was using 1.5.1 at the time.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 05 December 2006 10:08 AM   [ Ignore ]   [ # 50 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  02-02-2006

Mark,

I do have the markdown and smarty_pants plugins installed, and functionally, the markypants plugin works fine (I’m using it as the formatting option on my weblog). The only problem is accessing the plugins page.

Profile
 
 
Posted: 06 December 2006 08:24 AM   [ Ignore ]   [ # 51 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Hum…  I’m not sure what would cause this.  Is there anyway you can look at your error_logs and see if there is a PHP Error popping up?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 06 December 2006 09:17 AM   [ Ignore ]   [ # 52 ]  
Research Assistant
RankRankRank
Total Posts:  547
Joined  01-05-2005

Mark, it seems to be that the plugin manager tries to add the markdown and smarty plugins twice - once because they’re in the plugin directory, and again because markypants is including them.

To get around this I created a new directory /plugins/markypants/ and moved markdown and smarty in there.  And changed the includes.

It all seems to be working fine now.

Not sure if this is the best way to go about things or not.  I’m using PHP5.1.4 btw.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 06 December 2006 09:48 AM   [ Ignore ]   [ # 53 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  02-02-2006

Mark,

I checked out my error logs and there doesn’t appear to be anything.

I did follow smallbeer’s recommendation, and that worked. I am running PHP 5.1.6. The only downside is that markdown and smartypants are no longer available as stand alone plugins. That isn’t an issue for me, but it might be for someone - just a thought.

Thanks for looking into this.

Profile
 
 
Posted: 12 December 2006 07:33 AM   [ Ignore ]   [ # 54 ]  
Lab Assistant
RankRank
Total Posts:  189
Joined  10-09-2006

Is there a possibility to define a target when creating a link with the Markdown syntax?

Thanks.

 Signature 

G - B - O
___________
Version 1.6.4

Profile
 
 
   
3 of 4
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64877 Total Logged-in Users: 72
Total Topics: 81804 Total Anonymous Users: 43
Total Replies: 439748 Total Guests: 303
Total Posts: 521552    
Members ( View Memberlist )
Newest Members:  dxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcatoncvadrata