If the user types in '==' at the start of a line, make it an H2

Bug: T53897
Change-Id: Ic858a38f866d929d46041fb7df93102ec89eefb3
This commit is contained in:
James D. Forrester 2014-11-25 17:42:37 -08:00
parent c8c00b78f7
commit 9a7eddee79

View file

@ -24,7 +24,7 @@ ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextSig', 'mwWikitextWarning', '~~~' )
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextHeading', 'mwWikitextWarning', [ { type: 'paragraph' }, '=', '=' ] )
new ve.ui.Sequence( 'wikitextHeading', 'heading2', [ { type: 'paragraph' }, '=', '=' ], 2 )
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'numberHash', 'numberWrapOnce', [ { type: 'paragraph' }, '#', ' ' ], 2 )