Skip to main content

attributes in markdown

Project description

anchor_txt: attributes in markdown

anchor_txt adds the ability to embed attributes in markdown files so that external tools can more easily link them to eachother and code, as well as perform other operations.

Use anchor_txt.Section.from_md_path to load a markdown file.

# Markdown Syntax The syntax for anchor_txt attributes is simple.

  • Headers of the form # header {#anchor} will have the anchor tag extracted and available in Header.anchor

  • A header creates a Section, which can have sub sections.

  • Sections have attributes, which are embedded yaml either inline or in fenced code blocks, shown below.

An inline attribute looks like one of these: ` `@{foo}` `@{bar: 2}` `

Fenced code block attributes look like below. They must include the identifier yaml and end with a @

`yaml @ foo: None bar: 2 `

# License

The source code is Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Project details


Download files

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

Source Distribution

anchor_txt-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file anchor_txt-0.1.2.tar.gz.

File metadata

  • Download URL: anchor_txt-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for anchor_txt-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3e472bd86fa00882e471c6fc0e6b247650d6059323e7dcc73880b138cee0f063
MD5 7b4a643d588dc31c803390fe76ad1aa1
BLAKE2b-256 0a761f75048ec7b9aa2d9c460b707a9bead13168d26ad25f2aac37d7ce37e284

See more details on using hashes here.

Supported by

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