mirror of
https://github.com/python/cpython.git
synced 2025-07-25 20:24:11 +00:00
New markup: \note{...} and \warning{...}
This commit is contained in:
parent
8b78b99647
commit
92350b3a1f
4 changed files with 36 additions and 0 deletions
|
@ -236,6 +236,16 @@ sub do_cmd_textbf{
|
|||
return use_wrappers(@_[0], '<b>', '</b>'); }
|
||||
sub do_cmd_textit{
|
||||
return use_wrappers(@_[0], '<i>', '</i>'); }
|
||||
sub do_cmd_note{
|
||||
return use_wrappers(
|
||||
@_[0],
|
||||
"<span class=\"note\"><b class=\"label\">Note:</b>\n",
|
||||
'</span>'); }
|
||||
sub do_cmd_warning{
|
||||
return use_wrappers(
|
||||
@_[0],
|
||||
"<span class=\"warning\"><b class=\"label\">Warning:</b>\n",
|
||||
'</span>'); }
|
||||
|
||||
sub do_cmd_moreargs{
|
||||
return '...' . @_[0]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue