A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Python-Markdown/markdown/issues/1235 below:

annotating output tags with data attributes specifying the filename/line(s) responsible for the html output · Issue #1235 · Python-Markdown/markdown · GitHub

I'm looking to understand if there is a current option or approach for referencing back to the source markdown from the output HTML.

For example something like:

# Heading 1

> To be or not to be
> that is the question

might render out to something like this:

<h1 data-source-file="/tmp/demo.md" data-source-line="1" >Heading 1</h1>
<blockquote data-source-file="/tmp/demo.md" data-source-line="3" >
<p data-source-file="/tmp/demo.md" data-source-line="3" >To be or not to be
that is the question</p>
</blockquote>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4