WordPress.org

Ready to get started?Download WordPress

Forums

wp-sintax + markdown. lang-attribute problem (4 posts)

  1. gabor
    Member
    Posted 6 years ago #

    i am using markdown-syntax in my blog posts.
    the problem is that i have no idea how to add the "lang" attribute to the

     tag.

    any ideas?

    thanks,
    gabor

  2. gabor
    Member
    Posted 6 years ago #

    i'm sorry, it seems the forum at the html code.

    my second sentence was:

    the problem is that i have no idea how to add the "lang" attribute to the "pre" tag.

    thanks,
    gabor

  3. rmm5t
    Member
    Posted 6 years ago #

    @gabor, Hi. The wp-syntax plugin is designed to strip out <pre lang="xyz"> tags before other filtering plugins run. So, in theory, you should be able to simply use standard angle-bracket syntax inside your markdown and all should be well. In other words, try inserting <pre lang="xyz">code</pre> in one of your posts.

    If not, please point me to the markdown plugin your using. Perhaps either the markdown plugin's filter priorities or wp-syntax filter priorities need adjusted.

  4. rmm5t
    Member
    Posted 6 years ago #

    @gabor, I was egosurfing for wp-syntax related posts and found your follow-up post. I'm glad things are working for you now.

Topic Closed

This topic has been closed to new replies.

About this Topic