We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Markdown and Smarty Pants

Development and Programming

G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

What does the SmartyPants do then? I thought it took care of the curly quotes etc.

Thanks anyway.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Yup Smarty does the quotes and markdown does the xhtml.

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

Just to get things straight: how / where should i tell the system to use markypants? I can click the “edit list” with field formatting options, but there’s no ability to add a type …

Thanks.

(Btw, the 3 names in the pi-manager are all “MarkyPants”, their URLS act as normal … )

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

when you click ‘edit list’ markypants should show up there. i would try deleting all three of the plugins and check the pi-manager. do they still appear? once they no longer show up in the pi-manager add them again. It sounds like you have some legacy code in there somewhere.

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O
when you click ‘edit list’ markypants should show up there.

Does this mean when i alter xhtml it changes everywhere (like a standard profile), or is this a ‘per field’ option?

i would try deleting all three of the plugins and check the pi-manager. do they still appear? once they no longer show up in the pi-manager add them again. It sounds like you have some legacy code in there somewhere.

It works now, i tried your option, but then smartypants and markypants were both named markypants. I deleted those two, uploaded smartypants, refreshed the pi-manager, and then uploaded markypants. Now it looks as it should.

About the MarkyPants configuration: should i only set MarkyPants to yes, or e.g. leave auto < br / > to yes … ?

Thanks.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot
Does this mean when i alter xhtml it changes everywhere (like a standard profile), or is this a ‘per field’ option?

If you’re talking about in the “formatting” list then, when you set markypants to yes it should just show up as an option, alongside xhtml, completely independent.

About the MarkyPants configuration: should i only set MarkyPants to yes, or e.g. leave auto < br / > to yes … ?

you can leave br and xhtml to yes if you still want them to show up as available formatting options, usually i’ll turn xhtml off in favor of markypants.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

let me clarify

completely independent

that meant that it is on a per-field basis.

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

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!

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

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

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

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!

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

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.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

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
       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

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

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot
only i expected the xhtml to still handle this as normal …

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

       
G - B - O's avatar
G - B - O
31 posts
18 years ago
G - B - O's avatar G - B - O

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

Thanks.

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.