Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/assets/stylesheets/common/generics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
}

#edition img[alt="Titre de l’image"],
#edition img[alt="Titre de l'image"],
#edition img[alt=""] {
border: 3px dotted red;
}
Expand Down
28 changes: 14 additions & 14 deletions vendor/assets/javascripts/markitup-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ window.markItUpSettings = {
onTab: { keepDefault: true },
onShiftEnter: { keepDefault: false, openWith: '\n\n' },
markupSet: [
{ name: 'First Level Heading', placeHolder: 'Votre titre', className: 'h1', closeWith: function(m) { return miu.markdownTitle(m, '='); } },
{ name: 'Second Level Heading', placeHolder: 'Votre titre', className: 'h2', closeWith: function(m) { return miu.markdownTitle(m, '-'); } },
{ name: 'Heading 3', openWith: '### ', placeHolder: 'Votre titre', className: 'h3' },
{ name: 'Heading 4', openWith: '#### ', placeHolder: 'Votre titre', className: 'h4' },
{ name: 'Titre de niveau 1', placeHolder: 'Votre titre', className: 'h1', closeWith: function(m) { return miu.markdownTitle(m, '='); } },
{ name: 'Titre de niveau 2', placeHolder: 'Votre titre', className: 'h2', closeWith: function(m) { return miu.markdownTitle(m, '-'); } },
{ name: 'Titre de niveau 3', openWith: '### ', placeHolder: 'Votre titre', className: 'h3' },
{ name: 'Titre de niveau 4', openWith: '#### ', placeHolder: 'Votre titre', className: 'h4' },
{ separator: '---------------' },
{ name: 'Bold', openWith: '**', closeWith: '**', className: 'bold' },
{ name: 'Italic', openWith: '_', closeWith: '_', className: 'italic' },
{ name: 'Stroke', openWith: '~~', closeWith: '~~', className: 'stroke' },
{ name: 'Teletype', openWith: '`', closeWith: '`', className: 'teletype' },
{ name: 'Gras', openWith: '**', closeWith: '**', className: 'bold' },
{ name: 'Italique', openWith: '_', closeWith: '_', className: 'italic' },
{ name: 'Barré', openWith: '~~', closeWith: '~~', className: 'stroke' },
{ name: 'Terminal', openWith: '`', closeWith: '`', className: 'teletype' },
{ separator: '---------------' },
{ name: 'Bulleted List', openWith: '- ', className: 'list-bullet'},
{ name: 'Numeric List', className: 'list-numeric', openWith: function(m) { return m.line + '. '; } },
{ name: 'Liste à points', openWith: '- ', className: 'list-bullet'},
{ name: 'Liste ordonnée', className: 'list-numeric', openWith: function(m) { return m.line + '. '; } },
{ separator: '---------------' },
{ name: 'Picture', openWith: '![', closeWith: ']([![Url:!:http://]!])', placeHolder: "Titre de l'image", className: 'image' },
{ name: 'Link', openWith: '[', closeWith: ']([![Url:!:http://]!])', placeHolder: 'Texte du lien', className: 'link' },
{ name: 'Image externe', openWith: '![', closeWith: ']([![Adresse:!:https://]!])', placeHolder: "Titre de limage", className: 'image' },
{ name: 'Lien', openWith: '[', closeWith: ']([![Adresse:!:https://]!])', placeHolder: 'Texte du lien', className: 'link' },
{ separator: '---------------' },
{ name: 'Quotes', openWith: '> ', className: 'quotes' },
{ name: 'Code Block', className: 'code', replaceWith: function(m) { return m.selection.replace(/^/mg, " "); } }
{ name: 'Citations', openWith: '> ', className: 'quotes' },
{ name: 'Bloc de code', className: 'code', replaceWith: function(m) { return m.selection.replace(/^/mg, " "); } }
]
};