Python-mardown extension for inputs(text, select, checkbox...) in markdown document
Project description
md_inputs
md_inputs is a python-mardown extension for inputs(text, select, checkbox...) in markdown document
Usage
Use [[ text ]] to make a inline input element.
Text must contion attribute: type at least, like a html tag, your can add any attribute into the input element.
The value attribute is used to set the checkbox radio select input type value(selected or checked in given index(start from 0 for selected), "1" means checked)
If the type is select, the opt and opt_value attribute is used to set select options. opt means the display text of selections, each item use : to seperate. opt_value is the value of options, the separated item count of the opt_value must be the same of the opt. if the opt_value has not given, md_inputs will use the opt instead the opt_value.
Example
select
markdown:
[[type='select' opt='eopt1:eopt2' class='dfaj' id='eid1']]
html:
<p><span><select class='dfaj' id='eid1' ><option value='eopt1'>eopt1</option><option value='eopt1'>eopt2</option></select></span></p>
markdown:
[[type='select' opt='eopt1:eopt2' opt_value="1:2" class='dfaj' id='eid1' value="1"]]
html:
<p><span><select class='dfaj' id='eid1' value='1' ><option value='1' >eopt1</option><option value='2' selected>eopt2</option></select></span></p>
input
markdown:
[[type='input' value="hello" id='edit1']]
html:
<p><span><input type='input' value='hello' id='edit1' /></span></p>
checkbox
markdown:
[[type='checkbox' value="1"]]
html:
<p><span><input type='checkbox' value='1' checked /></span></p>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md_inputs-1.1.tar.gz.
File metadata
- Download URL: md_inputs-1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c994afb1ca2f88183beaf88ed41dfbab10fa0097763a7b4ef980ea76863f9b85
|
|
| MD5 |
279c0a318ed6f932cb97f8dd961aa1de
|
|
| BLAKE2b-256 |
742d2708fab1156def4dd02217b6768f054033116178e54478540f1e6e01afb1
|
File details
Details for the file md_inputs-1.1-py3-none-any.whl.
File metadata
- Download URL: md_inputs-1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c9c571be0581840b0cee9cee50f132496c007f74bd759f5b473fefdc9674dc4
|
|
| MD5 |
5d9c22a7a02b92e098f6ccdff6133e2a
|
|
| BLAKE2b-256 |
1d583488bbd08ecd5e2eb6f87950cf22cbf53e1cbb783d4a4cd69622067c1425
|