Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Anchor tags for H1, H2, H3... elements #68

Open
saurabhnanda opened this issue Aug 17, 2019 · 4 comments
Open

Feature request: Anchor tags for H1, H2, H3... elements #68

saurabhnanda opened this issue Aug 17, 2019 · 4 comments

Comments

@saurabhnanda
Copy link

I wanted to specifically link to Haskell eval blocks at https://theam.github.io/tintin/05-formatting-your-docs.html but was unable to do so.

@saurabhnanda
Copy link
Author

Picked up Tintin again for a side project and immediately felt the need for this (I tend to put a ToC at the top of a long page).

Scratch my own itch here?

@NickSeagull
Copy link
Contributor

The issue with this is that the HTML rendering is handled by inliterate. This should probably be a ticket in that repo

@saurabhnanda
Copy link
Author

@NickSeagull so IIUC, tintin utilizes inliterate to convert each markdown files(in the doc folder) to something that looks like https://github.com/diffusionkinetics/open/blob/master/plotlyhs/gendoc/GenDocInlit.hs . It adds a bunch of headers, footers, navigation, and CSS style in the process. Conversion from the "unified" markdown+haskell file to actual HTML is handled by inliterate. So, the complete pipeline looks like this:

markdown 
  => tintin "preprocessor"
  => markdown+haskell file
  => inliterate preprocessor
  => haskell file
  => ghc compilation
  => run the code which prints the final html

It this broadly accurate?

@NickSeagull
Copy link
Contributor

Yes, that is 100% correct @saurabhnanda 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants