Skip to content

Commit

Permalink
update scientificnumberhtml
Browse files Browse the repository at this point in the history
It now gets the data-interactive attribute automatically
  • Loading branch information
christianp committed Nov 14, 2024
1 parent cf68e3f commit e78a495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/jme-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ Number operations
* :data:`decimal` → :data:`html`

**Example**:
* ``scientificnumberhtml(123)`` → ``html(safe("<span>1.23 × 10<sup>2</sup></span>"))``
* ``scientificnumberhtml(123)`` → ``html(safe("<span data-interactive=\"false\">1.23 × 10<sup>2</sup></span>"))``

.. jme:function:: cleannumber(str, styles)
:keywords: strip, trim, validate, number
Expand Down

0 comments on commit e78a495

Please sign in to comment.