Multimarkdown html code and language

Jean-Jacques's Avatar


18 Sep, 2014 05:12 PM

I have set the language to de and I expect that this is passed to the html tag. According to WCAG v2 3.1.1 this tag shall contain
lang="<language>" (for me de).
If I have the following code

 [banana]:banana.jpg "Pict 1: banana" class="float-right small-size"

and refer this later within a paragraph, the classes are inserted into the img tag, this is OK.

If the image is not into a paragrag, I get <figure><img ... class="float-right small-size"><figcaption>...
For this case the class shall be applied to the figure element.

Is the possible to use macros for inserting page-breaks and so on ? I have not discovered such features.

  1. Support Staff 1 Posted by fletcher on 18 Sep, 2014 06:59 PM

    fletcher's Avatar

    The language metadata is for the "smart typography", e.g. quotation
    marks. It is unrelated to the HTML language specification. I will
    consider this for a future update, but that is not the current intent.

    The attributes are for the `img`, not the `figure`. I don't currently
    plan on changing this. If you need to, you can always use CSS selectors
    to find the `figure` that contains an `img` with a specified class.

    I'm not sure what you mean by "macros" for page-breaks. You can use
    whatever HTML/CSS you like to handle page breaks. That's beyond the
    scope of MMD itself.

    I hope this helps,


  2. 2 Posted by Jean-Jacques on 19 Sep, 2014 12:27 PM

    Jean-Jacques's Avatar

    There are two meta entries: Language and quoteslanguage.
    The first one may be put inside the html element. The second alllows in certain case to convert the ASCII quotes to the typographically right quote. This don't work as expected with multimarkdown, The page contain a table which show for different languages the quotes which are to be used.

    If I write an article I want to be able to produce both a well formatted printable documents and a version for the web. The source shall be common for both documen ts and ideally the html shall be well printed. If I have a html document the primary language shall be stated withn the document (html tag). If the document contain a citation in a forreign language, the concerned element shall contain the lang="xx" attriibute. The last is only via a macro for example:

    Ceci est une citation inclue dans un paragraphe,


    This is a citation within a paragraph

    There is no way to assign some attribute to the parent of an element. So some css attribute I assign with the image declaration are only valid for the img element itself.

     If I write a document and I want to have a particular page at the beginning of a new page I cab imagine that the following will be niche


    ## Title of the part beginning on a neu page

    ## Title of the part beginning on a neu page

    For the first example the html code may be
    <div class="newpage"></div>
    <h2>Title of the part beginning on a neu page</h2>

    and for the second example

    <h2 class="newpage">Title of the part beginning on a neu page</h2>

    For normal use this may be done with css, but this mean that all elements of a particulat type will have the same rule, there is no way to actually tell what is to do if the general rule is not OK for an particular element.

    Macros may be contained within an extrenal file so that the name can be adapted to the editor language eg:

    en: |newpage|<div class="newpage""></div>|class="newpage"
    fr: |nouvelle-page|<div class="newpage""></div>|class="newpage"
    de: |neue-seite|<div class="newpage""></div>|class="newpage"

  3. Support Staff 3 Posted by fletcher on 19 Sep, 2014 05:21 PM

    fletcher's Avatar

    I'm not sure what you are referring to. The "macros" that you describe
    are not part of MultiMarkdown.

    If you're having trouble with other software, I can't help you.

    MultiMarkdown is language "agnostic" -- the *only* reason it cares about
    language is to provide variations on smart typography (e.g. English
    style quotation marks, or German quotation marks, etc.)

    You are more than welcome to modify the resulting HTML in whatever way
    you see fit, and with whatever tools you desire, to add additional
    features/macros/whatever. But those are not part of MultiMarkdown.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

08 Dec, 2018 08:58 PM
14 Nov, 2018 04:54 AM
09 Nov, 2018 04:49 PM
09 Nov, 2018 04:46 PM
09 Nov, 2018 04:44 PM

Recent Articles