how to activate markdown ?

34 views
Skip to first unread message

Mick

unread,
Jan 22, 2014, 10:06:03 AM1/22/14
to yui...@googlegroups.com
Hi , i have installed yuidoc , with node on command-line
i could generate doc , but code portions aren't marked , exemple of my code : 

/**
* Method appelée lors d'un appel via JSELaunch
* @method init
* @param  {object} conf [paramètres de configuration du composant]
 
  var conf = {
templateData: {
link: 'www.google.fr',
textContent: 'Voila avec un texte super longggg',
img : '/static/tpl/Auto/img/logoNissan.jpg'
},
iconPosition: 'iconRight',
textContent: 'Voila avec un texte super longggg',
textContentDesactivate: 'Désactiver ce lien'
};

@example test


*/

someone can help me ?

thx

Juan Ignacio Dopazo

unread,
Jan 22, 2014, 10:14:09 AM1/22/14
to yui...@googlegroups.com
You can use ``` for code:

/**
Does foo like this:

```
obj.foo();
thenDoOtherFoo();
```
@method foo
**/

Juan

Mick

unread,
Jan 22, 2014, 10:32:48 AM1/22/14
to yui...@googlegroups.com
Strange ! your example works but this not : 


/**
* Method appelée lors d'un appel via JSELaunch
* @method init
* @param  {object} conf [paramètres de configuration du composant]
 
  ```
  var conf = {
templateData: {
link: 'www.google.fr',
textContent: 'Voila avec un texte super longggg',
img : '/static/tpl/Auto/img/logoNissan.jpg'
},
iconPosition: 'iconRight',
textContent: 'Voila avec un texte super longggg',
textContentDesactivate: 'Désactiver ce lien'
};
```
*/

Juan Ignacio Dopazo

unread,
Jan 22, 2014, 10:34:40 AM1/22/14
to yui...@googlegroups.com
It may not work inside parameters, only descriptions and examples.

Mick

unread,
Jan 22, 2014, 10:38:06 AM1/22/14
to yui...@googlegroups.com
ho i don't understand why but this one works : 

/**
 Method appelée lors d'un appel via JSELaunch :

  ```
  var conf = {
templateData: {
link: 'www.google.fr',
textContent: 'Voila avec un texte super longggg',
img : '/static/tpl/Auto/img/logoNissan.jpg'
},
iconPosition: 'iconRight',
textContent: 'Voila avec un texte super longggg',
textContentDesactivate: 'Désactiver ce lien'
};
```
 @method init
 @param  {object} conf [paramètres de configuration du composant]

**/

Reply all
Reply to author
Forward
0 new messages