Skip to main content

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

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md_inputs-1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md_inputs-1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for md_inputs-1.1.tar.gz
Algorithm Hash digest
SHA256 c994afb1ca2f88183beaf88ed41dfbab10fa0097763a7b4ef980ea76863f9b85
MD5 279c0a318ed6f932cb97f8dd961aa1de
BLAKE2b-256 742d2708fab1156def4dd02217b6768f054033116178e54478540f1e6e01afb1

See more details on using hashes here.

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

Hashes for md_inputs-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c9c571be0581840b0cee9cee50f132496c007f74bd759f5b473fefdc9674dc4
MD5 5d9c22a7a02b92e098f6ccdff6133e2a
BLAKE2b-256 1d583488bbd08ecd5e2eb6f87950cf22cbf53e1cbb783d4a4cd69622067c1425

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page