Giter Club home page Giter Club logo

Comments (13)

dileping avatar dileping commented on July 19, 2024

@iamjono Hi, thanks for the feedback!

Have you done prerequisites?

brew install discount

from markdown.

iamjono avatar iamjono commented on July 19, 2024

Yep...

$ brew install discount
Warning: discount-2.2.0 already installed

from markdown.

dileping avatar dileping commented on July 19, 2024

@iamjono: could you, please, check if it works with Carthage on your system?

from markdown.

iamjono avatar iamjono commented on July 19, 2024

I'm not using Carthage... I'm on Xcode 8.0 Beta 2, using SPM.
If I'm using SPM it should work without Carthage I would have presumed?

from markdown.

dileping avatar dileping commented on July 19, 2024

@iamjono: Yes, it should. I'm just asking if you could try it with Carthage to find out if the issue is your system specific.

from markdown.

iamjono avatar iamjono commented on July 19, 2024

Yeah I did just try it with Carthage - no joy.

Note that there was already an entry in the linked frameworks and libraries for the Markdown.framework.

I should also note that it doesn't compile on the commandline using swift build, nor in Xcode.

from markdown.

dileping avatar dileping commented on July 19, 2024

@iamjono: thanks a lot! Looks like something new. Will take a look at it asap.

from markdown.

iamjono avatar iamjono commented on July 19, 2024

That would be awesome, thanks!

from markdown.

ypopovych avatar ypopovych commented on July 19, 2024

Hi @iamjono ,
For the proper build, you have to add a header and library path to swift build command. So your command will be like this:
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib

But seems as Markdown isn't ported to Swift 3.0 yet :(

from markdown.

iamjono avatar iamjono commented on July 19, 2024

Yep figured as much, on both counts.

I really wanted to use it for generating the HTML docs from markdown for https://github.com/PerfectlySoft/PerfectDocs :)

from markdown.

dileping avatar dileping commented on July 19, 2024

@iamjono @ypopovych I will get my hands on this this week to make it both Swift 2/3 compatible

from markdown.

dileping avatar dileping commented on July 19, 2024

@ypopovych @iamjono I've published a new version which supports Swift 3.0 (works with the newest Xcode). For now there is no possibility to build it without additional flags on Mac with swift build as there is no support for pkg-config in the underlying system library.

So, to build it on a Mac with swift build you still have to use these flags:

swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib

I will talk to the system library developers about the pkg-config issue. Let's see what we can do.

from markdown.

dileping avatar dileping commented on July 19, 2024

@iamjono @ypopovych Some good news here, guys. I've made a PR to libmarkdown with pkg-config and it's merged already. Waiting for a new release.

from markdown.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.