-
-
Notifications
You must be signed in to change notification settings - Fork 24
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: Additional option for the lib to work on a single file rather than source and generated file #273
Comments
ok. i will have this done in a couple of days |
hows this mysticmind/reversemarkdown-net#81 ? |
Thanks @SimonCropp, this will be really helpful feature. |
I've had a go at using on some of the files in ApprovalTests.cpp... I'll update this as I go, but the pattern for updating seems to be: Preparation
Migration
These changes are on the mdsnippet_inplace branch |
Problem 1: mdsource/include_blah.include.md files are not found: Error message:
Original line in generated .md file:
Same for multi-line includes: Error:
Input:
|
Problem 2: https includes not found Console output:
Example text in generated .md file for the first of these:
|
Probably you've done this already, @SimonCropp, but if the project's tests don't already test that all generated text can be round-tripped (regenerated consistently from inside a generated file), maybe that would be a good thing to build in to the tests automatically now, to ensure this keeps working for all future new features - and existing features that I haven't just tested... |
@SimonCropp This version works flawlessly - the two problems listed above are fixed. Huge thanks! Tool 'markdownsnippets.tool' was reinstalled with the latest stable version (version '20.0.3') /CC @isidore |
@claremacrae good to hear. |
Problem at hand
file.source.md
with the snippet markers and the tool generatesfile.md
with the snippet content.Proposed solution
snippet: name
and the generated file has content within<!-- snippet: name -->
and<!-- endsnippet -->
. It is quite easy to detect the snippet content block based on these 2 patterns without any ambiguity and replace with the generated snippet on the same file.My request is to add an option for the tool to work on a single file based on these patterns.
The text was updated successfully, but these errors were encountered: