mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
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:
parent
c8c00b78f7
commit
9a7eddee79
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue