-
Notifications
You must be signed in to change notification settings - Fork 51
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
Header anchor missing end of comment tag processing content produced with attribute lists #208
Comments
Welcome to this project and thank you!' first issue |
As a workaround I am going to try and post process the content to:
|
Could be 🤔 For reference,
Are you willing to propose a PR and test whether it solves the problem for you? |
My workaround (post processing) was successful ; but I know how frustrating it is if people do not report issues. I am nominally a java developer so I am afraid I am embarrassed to try hacking at Python code.
|
@jodygarnett No problem. If you prefer, I can do the change and it might still be fun for you to have a look at the diff? When I didn't know anything at all of Python, I chose a super simple and short manual called Python Phrasebook; it was easy reading, and I completed it in a couple of evenings. It gave the few central ideas on which I could build all the rest. You might need a more recent book, because it covers Python 2 (instead of Python 3), but it's the approach that worked for me. |
- Now it is possible to specify to additional standard jinja2 parameters, e.g. j2_comment_start_string: '[#' j2_comment_end_string: '#]' - Updated documentation - Updated `new_syntax` use case
I pushed an update on github with e.g.: plugins:
- search
- macros:
j2_block_start_string: '[[%'
j2_block_end_string: '%]]'
j2_variable_start_string: '[['
j2_variable_end_string: ']]'
j2_comment_start_string: '[#'
j2_comment_end_string: '#]' I also updated the Could you try it for your use case and let me know if it works? |
Yes happy to try, just need to figure out how to test from GitHub. |
I have gotten stuck on an interesting challenge, I am cleaning up some docs converted with pandoc resulting in headers with attribute_list snippets information.
This falls squarely into the User Manual "Elsewhere" Solution 5
These settings are picked up:
But stumble on
{#identifier}
:Is there a need for a
j2_comment_start_string
andj2_comment_end_string
?The text was updated successfully, but these errors were encountered: