.. include:: /Includes.rst.txt .. _definition-lists-creating: Creating a definition list ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _case-1-nothing-is-highlighted-cursor-is-inside-p-or-hx: Case 1: Nothing is highlighted, cursor is inside p or hx. """"""""""""""""""""""""""""""""""""""""""""""""""""""""" Example:

Definition term\|

If dl-button is clicked, this becomes:
Some Text\|
.. _case-2-nothing-is-highlighted-cursor-is-inside-a-block-element-other-than-p-or-hx: Case 2: Nothing is highlighted, cursor is inside a block element other than p or hx. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Example:
Definition term\|
If dl-button is clicked, this becomes:
Definition term\|
.. _case-3-creating-a-dl-from-multiple-highlighted-paragraphs: Case 3: Creating a dl from multiple highlighted paragraphs """""""""""""""""""""""""""""""""""""""""""""""""""""""""" Let us say, we have the following code highlighted:

Definition term 1

Definition text 1

Definition term 2

Definition text 2

Klicking the dl-button results in alternatingdt/ddelements wrapped bydl:
Definition term 1
Definition text 1
Definition term 2
Definition text 2\|
.. _case-4-creating-a-dl-from-a-highlighted-combination-of-hx-and-p: Case 4: Creating a dl from a highlighted combination of hx and p """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

headline 1

paragraph 1.1

paragraph 1.2

headline 2

paragraph 2.1

In this case - everyhxwould becomedt,and - everypwould becomedd.
headline 1
paragraph 1.1
paragraph 1.2
headline 2
paragraph 2.1\|