jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.85k stars 3.34k forks source link

Support for iXBRL or XBRL #6416

Open slavakurilyak opened 4 years ago

slavakurilyak commented 4 years ago

Any plans to support Inline XBRL?

Inline XBRL is a format that allows filers to embed XBRL data directly into a HyperText Markup Language (HTML) document so that filers need only prepare one Inline XBRL document rather than generate an HTML document of their financial statement information or risk/return summary information and then tag a copy of the data to create a separate XBRL exhibit.

mb21 commented 4 years ago

so this would be part of the HTML output? and you would want to generate this from markdown, or...? can you provide an example markdown input or similar, demonstrating a use-case?

slavakurilyak commented 4 years ago

@mb21 Every public US-based company must file financial statements to the SEC using iXBRL/XBRL format.

To better understand this unique file format, review the latest 10-Q (Quarterly Report) filing by Starbucks. Here is an example of iXBRL and here is an example of the HTML equivalent.

Converting Markdown (or other file types) to iXBRL allows public companies to file financial statement documents faster.

Converting iXBRL to HTML allows data scientists to better analyze EDGAR data since 1994.

mb21 commented 4 years ago

Maybe a US person will understand this better than I do, but I still have trouble understanding what the markdown input would look like. Can you post an example of two or three example sentences?

slavakurilyak commented 4 years ago

@mb21 For inspiration on how to generate XBRL files from aoix, refer to IXBRL samples.

aoix simplifies the process of generating iXBRL Reports by embedding tags into an XHTML document. aoix allows you to directly specify the aspects of a fact, such as concept, period, units, and other dimensions, and takes care of the syntactic details of creating contexts and units. This approach is particularly effective for tabular data, which can be specified as the intersection of row aspects and column aspects, avoiding the need to specify the details of each individual fact. (aoix)

aoix is equivalent to Markdown for Google Sheets.